DMD 1.035 and 2.019 releases

Walter Bright newshound1 at digitalmars.com
Wed Sep 3 22:32:26 PDT 2008


Steven Schveighoffer wrote:
> "Walter Bright" wrote
>> Ary Borenszweig wrote:
>>> So both syntax are possible?
>>>
>>> S(...)
>> Creates a struct instance
>>
>>> new S(...)
>> Creates a struct instance and returns a pointer to it.
> 
> On the heap I assume? (hope)

S() creates it on the stack, new S() on the heap.


More information about the Digitalmars-d-announce mailing list