Immutability and other attributes, please review

Jonathan M Davis jmdavisProg at gmx.com
Thu Jun 14 09:24:26 PDT 2012


On Thursday, June 14, 2012 17:32:03 Roman D. Boiko wrote:
> I don't know how to put a variable of type float to the heap

auto f = new float;
*f = 2.1;

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list