bug or feature? [message #66158] |
Thu, 16 April 2009 03:21 |
lbnc
Messages: 15 Registered: January 2005
|
Junior Member |
|
|
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.
plot, indgen(23), indgen(23), xminor $
^
IDL: Syntax error.
No good. But I can do:
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.
Come to think of it, I should probably report that to ITTVIS instead
of posting it here...
Cheers
Lasse
|
|
|