"Value class instance" pattern?

bearophile bearophileHUGS at lycos.com
Sun Jul 14 05:07:20 PDT 2013


Benjamin Thaut:

> With my version you will instantly know what ctors are 
> available and you don't have to go look it up in the sourcecode.

Right. On the other hand this is what happens when you call any 
constructor or any overloaded function. So I don't think it's so 
important.

One possible difference I see between my simpler ComposedClass 
and normal overloaded functions/constructors is that with 
ComposedClass an IDE can't give you a list of suggestions... So 
perhaps your idea is useful for D programmers that use an IDE.

Bye,
bearophile


More information about the Digitalmars-d mailing list