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

Home » Public Forums » archive » Re: bug or feature?
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: bug or feature? [message #66156 is a reply to message #66155] Thu, 16 April 2009 03:52 Go to previous messageGo to previous message
jameskuyper is currently offline  jameskuyper
Messages: 79
Registered: October 2007
Member
lbnc@lbnc.de wrote:
> Hi there,
>
> in the IDL 6.3 documentation it says:
>
> Dollar Sign ($)
> The dollar sign at the end of a line indicates that the current
> statement is continued on the following line. The dollar sign
> character can appear anywhere a space is legal except within a string
> constant or between a function name and the first open parenthesis.
> Any number of continuation lines are allowed.
>
> So I do:
>
> IDL>plot, indgen(23), indgen(23), xminor = 4
>
> Lovely! However:
>
> IDL>plot, indgen(23), indgen(23), xminor $
> plot, indgen(23), indgen(23), xminor $
> ^
> IDL: PLOT: Incorrect number of arguments.

You have just given the plot command 7 arguments. The $ character makes
the above pair of lines equivalent to a single line:

plot, indgen(23), indgen(23), xminor plot, indgen(23), indgen(23), xminor

I hope you can understand why IDL complains about that command?

> IDL>plot, indgen(23), indgen(23), xminor = $
> IDL> 4
>
> So anyway, seems like the documentation is wrong. Maybe. Depends how
> you define "string constant" but I would not include the assign
> operator "=" as part of it.

I don't see how you reach that conclusion. String constants have nothing
to do with this.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLgrClipboard draw RGBA
Next Topic: Re: How can I know all the information of a CDF file?

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

Current Time: Fri Oct 10 21:40:15 PDT 2025

Total time taken to generate the page: 1.27965 seconds