DMD 1.035 and 2.019 releases
Ary Borenszweig
ary at esperanto.org.ar
Wed Sep 3 17:50:28 PDT 2008
Walter Bright a écrit :
> Chris R. Miller wrote:
>> Walter Bright wrote:
>>> Sean Kelly wrote:
>>>> Walter Bright wrote:
>>>>> Struct constructors!
>>>> Must... have... D2. :-)
>>> I figured you'd be seduced sooner or later!
>>
>> So this would make structs (in effect) classes that don't exist on the
>> heap?
>>
>
> No, structs do not inherit and do not have virtual functions.
So both syntax are possible?
S(...)
new S(...)
for a struct with a constructor? Is that documented anywhere?
More information about the Digitalmars-d-announce
mailing list