On 05/05/10 23:58, strtr wrote:
But wouldn't this (property sugar?) be nice?
I don't like it, I can see why you would though :)
int myInt = 6; int* ptrToMyInt = myInt.ptr; int myInt2 = ptrToMyInt.deref; // you probably didn't mean *myInt ;)
I guess this is what I get for writing code quickly without checking it on newsgroups ;) No wonder I gave in and wrote patches for dmd's debug info :D
I understand the concept of pointers, but I just keep forgetting which one to use * or&. probably because I don't like the double * meaning.
It takes a while to get used to if you're not used to it, you get used to it after a while though :)