comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDLDOC question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDLDOC Question [message #74572 is a reply to message #66975] Tue, 25 January 2011 09:27 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Michael Galloy wrote:
> The "guiding philosophy" of IDLdoc is to place the documentation
> for something as close as possible to the actual definition in the code
> so that the documentation actually is updated as the code is updated.

Based on my own experience (not just with IDL), I think this is a good philosophy. Debugging header documentation is
devilishly hard.... unless, I guess, you use a preprocessor to generate it directly from the code (like RDoc for ruby).

Anyway.... regarding David Fanning's original question.....

With my own widget code where I there is the usual bunch of private "helper" procedures/functions preceding the main
routine, I have taken to either putting them in their own files (for the bigger ones) or in an include file that is
included at the top of the file. I got tired of having to scroll up/down searching for the routines during editing, or
having a split-pane edit window.

David, what about doing something like

-----%<-----
@mywidgetapp_helper.pro

; main routine documentation
;
;
; .....
;
;
PRO mywidgetapp, args...., keywords.....
...just the main widget app code...
END
-----%<-----


where the "mywidgetapp_helper.pro" file contains all the associated code for the main app.

??

cheers,

paulv

p.s. I use the same approach when I generate "syntactic sugar" routines for objects - the include file is at the top of
my "XXXXX__define.pro" file.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Removing Array Values
Next Topic: Interpolation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 00:42:04 PDT 2025

Total time taken to generate the page: 0.48281 seconds