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

Home » Public Forums » archive » Re: Strange IDL string bug
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: Strange IDL string bug [message #4820 is a reply to message #4818] Wed, 09 August 1995 00:00 Go to previous message
Rolf P. W\"urtz is currently offline  Rolf P. W\"urtz
Messages: 3
Registered: June 1995
Junior Member
Justin Baker <justinb@bom.gov.au> wrote:

>
> I quickly discovered that there seems to be a problem with " quoted strings if
> they start with a digit.
>

The error is due to the fact that "123 means the _octal_ value of 123. How
somebody could get this idea is beyond me. Even stranger than a leading zero,
IMHO. To make it even more interesting, IDL does not check for unbalanced
quotes, so the following works:

%print, '123
123
%print, "123
83

Lovely, isn't it?

Rolf

+----------------------------------------------------------- ----------------+
| Rolf P. W"urtz | mailto:rolf@cs.rug.nl | URL: http://www.cs.rug.nl/~rolf/ |
| Department of Computing Science, University of Groningen, The Netherlands |
+----------------------------------------------------------- ----------------+
[Message index]
 
Read Message
Read Message
Previous Topic: No forward_pro statement !!!!
Next Topic: Strange IDL string bug

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

Current Time: Sun Oct 12 00:02:43 PDT 2025

Total time taken to generate the page: 2.96820 seconds