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

Close

#532 pointer dereference behaviour

closed-fixed
nobody
None
5
2013-05-07
2013-04-28
Martin Svec
No

IDL vs. GDL:

IDL> a=ptrarr(1)
IDL> a(0)=ptr_new('a')
IDL> s={a:a}
IDL> help,*(s.a)(0)
<PtrHeapVar13> STRING = 'a'
IDL> help,*s.a(0)
<PtrHeapVar13> STRING = 'a'

GDL> a=ptrarr(1)
GDL> a(0)=ptr_new('a')
GDL> s={a:a}
GDL> help,*(s.a)(0)
<Expression> STRING = 'a'
GDL> help,*s.a(0)
% Pointer type required in this context: S
% Execution halted at: $MAIN$

Discussion

  • Marc Schellens
    Marc Schellens
    2013-05-07

    • status: open --> closed-fixed
     
  • Marc Schellens
    Marc Schellens
    2013-05-07

    Thanks for the report.
    Note: As a workaround you can use square brackets: *s.a[0]