Changing the class data underneath some reference

codephantom me at noyb.com
Thu Nov 30 01:01:24 UTC 2017


On Thursday, 30 November 2017 at 00:52:25 UTC, codephantom wrote:
>...

sorry, don't know how the int * got in there ;-)

Anyway..who said you can't use pointers in D?

Just change:


//SomeType bar = foo;
SomeType * bar = &foo;



More information about the Digitalmars-d-learn mailing list