What about C's -> ?

freeagle dalibor.free at gmail.com
Tue Jul 24 14:01:03 PDT 2007


nope, it does not:

import tango.io.Stdout;

class Test
{
         int a;
}

int main(char[][] args)
{
         Test a = new Test();
         a.a = 13123;
         Test* pa = &a;
         Test** ppa = &pa;
         Test*** pppa = &ppa;

         Stdout(pppa.a).newline;

         return 0;
}

test.d(16): Error: no property 'a' for type 'Test**'


More information about the Digitalmars-d-learn mailing list