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

Home » Public Forums » archive » Re: commenting
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: commenting [message #23791 is a reply to message #23788] Tue, 20 February 2001 08:51 Go to previous messageGo to previous message
Christopher W. O'Dell is currently offline  Christopher W. O'Dell
Messages: 20
Registered: February 2001
Junior Member
that is BEAUTIFUL. perfect. Now my repetitive motion injuries
may begin the long healing process!

Thanks,
Chris

David Fanning wrote:

> Christopher W. O'Dell (odell@cmb.physics.wisc.edu) writes:
>
>> This is probably wishful thinking, but is there any way to
>> comment out a large section of code as in C,
>> where you don't have to insert a ';' on every line of code,
>> but you can use a beginning and ending comment delimiter?
>> I have this idea that there might be secret delimiters that
>> i have not yet heard about in IDL. And I'm very lazy and
>> have often longed for this feature.
>
> It's wishful thinking.
>
> But you can always temporarily wrap code you want to ignore
> in an IF statement:
>
> ignore = 1
> IF ignore NE 1 THEN BEGIN
>
> ... code to ignore here...
>
> ENDIF ; of code I am ignoring
>
> It's not elegant, but if the code you want to ignore
> consists of a lot of lines, it cuts down on repetitive
> motion injuries. And you can easily go back and forth
> just by setting the ignore flag. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438 E-Mail: davidf@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Running IDL from cron
Next Topic: Generally accessing the rest of the elements in an array

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

Current Time: Sat Oct 11 10:38:47 PDT 2025

Total time taken to generate the page: 0.47788 seconds