DMD 0.177 release

Tom ihate at spam.com
Sun Dec 10 05:29:42 PST 2006


Walter Bright escribió:
> Jarrett Billingsley wrote:
>> What is the TRUE reason you don't want to give structs ctors?  I don't 
>> want to know why static opCalls are good, but why ctors are bad. 
> 
> Constructor:
> 
>     S(v);
> 
> static opCall:
> 
>     S(v)
> 
> What's the difference? I just don't see the point for adding constructors.

I don't understand: the current way to go (opCall) *is a workaround*. 
That means, it's frequently used by D programmers to simulate something 
that is missing in the language (at least in my case).

What about elegance (one of the most beloved properties of D)? Doesn't 
it account at all?

Regards,
--
Tom;



More information about the Digitalmars-d-announce mailing list