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

Home » Public Forums » archive » Re: Where's the syntax error? No stringst that only contain numbers?
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: Where's the syntax error? No stringst that only contain numbers? [message #50285 is a reply to message #50208] Tue, 19 September 2006 11:15 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Mon, 18 Sep 2006 10:57:06 -0600, David Fanning wrote:

> IDL thinks you are trying to create an octal constant,
> not a string. Use single quotes here and you will be
> set. :-)

Whoever invented the notation "n for an octal constant should be taken
out and shot, or at least go through an extreme de-tox treatment to
remove whatever substance must have been influencing them at the time.

Consider this cornucopia of consistency:

IDL> a="12
IDL> help,a
A INT = 10
IDL> a= "18
IDL> help,a
A INT = 1
IDL> a= "81
IDL> help,a
A STRING = '81'

not to mention that all those loose double-quotes really mess up
string formatting. I recommend the far more sensible:

IDL> a='12'O

possibly coupled with a stern note to ITTVIS suggesting they provide
an option to disable the former brain-dead notation.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A new puzzle for histogram
Next Topic: spawn and 'ls *.out'

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

Current Time: Tue Dec 02 10:46:14 PST 2025

Total time taken to generate the page: 1.44139 seconds