readonly?

Jonathan M Davis jmdavisProg at gmx.com
Tue Jul 10 23:38:14 PDT 2012


On Wednesday, July 11, 2012 08:34:28 Tobias Pankrath wrote:
> > This escapes a stack reference.
> 
> Ins't b supposed to be allocated on the heap?

The object is. The reference is not. &b is taking the address of the 
reference, not the object.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list