Re: D2 Pointer confusion
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
Hey guys, I got a problem with the following code: void main() { struct SomeStruct { int aa; } class SomeClass { int a; SomeStruct foo() { SomeS