References in D

Jacob Carlborg doob at me.com
Sun Sep 16 11:42:08 PDT 2012


On 2012-09-16 13:47, Alex Rønne Petersen wrote:

> Nope, since in this context you're assigning it to an int&. So it really
> just means "r = p" if you assume that references are just pointers
> (which they are in most implementations).

Ah, I didn't think of that.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list