Union redux
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 2 18:15:31 PDT 2015
On 6/2/15 8:53 PM, Timon Gehr wrote:
> On 06/03/2015 02:51 AM, Andrei Alexandrescu wrote:
>> Oh, I only now understood the question. Yes, it's possible to only call
>> postblit if defined:
>>
>> static if (hasElaborateCopyConstructor!T)
>> tvar.__postblit();
The sad part is, I knew this :(
>
> Indeed, but I think this facility is undocumented. Maybe it should be
> exposed via the standard library?
I don't see the need. It's simply the name of the compiled member. I
think it should be documented, however.
-Steve
More information about the Digitalmars-d
mailing list