Hello!
Is class inheritance implemented in GDL?
I was trying to execute an example code from IDL documentation (http://idlastro.gsfc.nasa.gov/idl_html_help/Creating_Custom_Object_Method_Routines.html)
GDL> struct = { class1, data1:0.0 } GDL> struct = { class2, data2a:0, data2b:0L, INHERITS class1 }
and got the following error message:
% Parser syntax error: unexpected token: INHERITS
Regards. Sylwester Arabas
Just for the record: This should have worked always. For sure it does with 0.9pre5
Log in to post a comment.
Hello!
Is class inheritance implemented in GDL?
I was trying to execute an example code from IDL documentation
(http://idlastro.gsfc.nasa.gov/idl_html_help/Creating_Custom_Object_Method_Routines.html)
GDL> struct = { class1, data1:0.0 }
GDL> struct = { class2, data2a:0, data2b:0L, INHERITS class1 }
and got the following error message:
% Parser syntax error: unexpected token: INHERITS
Regards.
Sylwester Arabas
Just for the record:
This should have worked always.
For sure it does with 0.9pre5