DMD 1.035 and 2.019 releases
Ary Borenszweig
ary at esperanto.org.ar
Wed Sep 3 04:39:12 PDT 2008
Walter Bright a écrit :
> To construct an object of struct S:
>
> auto s = S(arguments);
Please add this example to the docs. I first thought you'd create a
struct like
auto s = new S(arguments);
(so that constructing something has a consistent syntax... so if then
you decide to change your struct to a class, or viceversa, and you don't
have to change a lot of bits everywhere)
>
> Extrawurst wrote:
>> Are opCalls deprecated now ? how do i call the ctor and how the
>> opCall? a short example in the docs would have been nice.
More information about the Digitalmars-d-announce
mailing list