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

Home » Public Forums » archive » Single Quotes, Double Quotes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Single Quotes, Double Quotes [message #11762] Thu, 14 May 1998 00:00
Charles Cavanaugh is currently offline  Charles Cavanaugh
Messages: 8
Registered: July 1997
Junior Member
<HTML>
Can anyone please explain to me why the line

<P>&nbsp;&nbsp;&nbsp; <I>asciiutc = "1993-09-19T06:30:00.000000Z"</I><I></I>

<P>fails compilation with the error message

<P>&nbsp;&nbsp;&nbsp; <I>asciiutc = "1993-09-19T06:30:00.000000Z"</I>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;<I> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
^</I>
<BR>&nbsp;&nbsp;&nbsp; <I>% Syntax error.</I><I></I>

<P>but the same line, using single quotes instead of double
<BR>quotes, compiles.

<P>When I changed the "T" to a "0", compilation failed
<BR>again, but the syntax error pointer moved from the
<BR>first character after the "T" to the first character
<BR>after the ":".

<P>I first learned IDL back when 3.something was the
<BR>current version, and I learned that the single and
<BR>double quotes were pretty much interchangeable:
<BR>one was used for string constants and another for
<BR>string literals, whatever the difference is.&nbsp; Is this
<BR>difference being manifested in the problem noted
<BR>above?

<P>Thanks in advance,

<P>Charles Cavanaugh
<PRE>--&nbsp;
Charles Cavanaugh
MOPITT Program
National Center for Atmospheric Research
Boulder, CO, USA
email: cavanaug@ucar.edu
phone: (303) 497-2919
fax&nbsp; : (303) 497-2920</PRE>
&nbsp;</HTML>
[Message index]
 
Read Message
Previous Topic: Re: defficiency of IDL on front page of Physics Today
Next Topic: BETA TESTERS WANTED!!!

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

Current Time: Fri Oct 10 07:59:29 PDT 2025

Total time taken to generate the page: 0.63852 seconds