[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Differences between ' and ", syntax error (bug?)




Okay;  

Can someone tell me why the following two assignment statements
shouldn't be considered equivalent (and, therefore, how this behavior
is not a bug)

The two assignemts are 

   1. t='0,38:42,75'    and 
   2. t="0,38:42,75"

  #1 works fine, #2 fails with a syntax error

IDL> t='0,38:42,75'   
IDL> print,t 
0,38:42,75

IDL> t="0,38:42,75" 

t="0,38:42,75"
     ^
% Syntax error.
IDL> 

IDL> print,!version 
{ mipseb IRIX unix 5.1 Apr 13 1998}
IDL> 


-- 
I don't speak for JPL, it doesn't speak for me. 
Well, not all the time, at least. 
William Daffer <vapuser@haifung.jpl.nasa.gov>