seany - 2013-12-25

Hello and Merry Xmas

I had this as a script file:

a = [1 , 2 , 3 , 4]
for i = 0,3 do begin
print, a[i]
endfor

if i save this with the name test. pro and run as gdl test.pro, it tells me that it encountered errors : unknown token FOR and unknwon token EnDFOR.

adding a pro test header and an end footer reports compilationnot possible, although i am not using the -e option, in single line mode.

the same script, frominside gdl, with .run test.pro works perfectly

what is wrong?

also is there any intro to GDL object oriented programming?

GDL version 0.9.4 cvs