What about C's -> ?
Jason House
jason.james.house at gmail.com
Wed Jul 25 15:56:47 PDT 2007
freeagle wrote:
> 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**'
pppa.a -> fails
test.d(16): Error: no property 'a' for type 'Test**'
pppa...a -> fails
test.d(16): found '...' when expecting ','
pppa. . .a -> fails
test.d(16): identifier expected following '.', not '.'
(**pppa).a -> works
(***pppa).a -> works
More information about the Digitalmars-d-learn
mailing list