Menu

class inheritance in gdl

Help
2006-11-23
2013-06-03
  • Sylwester Arabas

    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

     
    • Marc Schellens

      Marc Schellens - 2007-08-08

      Just for the record:
      This should have worked always.
      For sure it does with 0.9pre5

       

Log in to post a comment.