Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Problem with structure inheritance

Help
ajax
2011-08-08
2013-06-03
  • ajax
    ajax
    2011-08-08

    The following simple code makes error on last line:

    a = {str_a, xa:1,ya:2}
    b = {str_b, xb:1,yb:2,inherits aaa}
    c = {str_b}
    c.xa = 1
    c.xb = 2
    print, c
    d = {str_b,xb:1,yb:2,xa:3,ya:4}
    

    The error message:
    STR_B: redefinition with different number of parents.

    Is this a bug of GDL? or simply I made some mistake?
    PS: I have tested the code IDL and it works.

    My GDL version: 0.9.0 (on Fedora 15)