Re: D2 Pointer confusion

2009-09-01 Thread Ellery Newcomer
Umm.. A shot in the dark? void main(){ struct SomeStruct{ int* p; void aa(int a){ *p = a; } } class SomeClass{ int a; SomeStruct foo(){ SomeStruct m; m.g = &a; return m; } } SomeClass inst = new SomeClass; ins

D2 Pointer confusion

2009-08-30 Thread A Bothe
Hey guys, I got a problem with the following code: void main() { struct SomeStruct { int aa; } class SomeClass { int a; SomeStruct foo() { SomeS