Suggestion: class/struct tuples preserve anonymous unions/structs

Jarrett Billingsley kb3ctd2 at yahoo.com
Thu Feb 15 06:47:27 PST 2007


"Frits van Bommel" <fvbommel at REMwOVExCAPSs.nl> wrote in message 
news:er1ost$mae$1 at digitalmars.com...
> Jarrett Billingsley wrote:
> [snip code]
>>
>> Thanks for this :)  I was thinking it might be possible to check the 
>> .offsetofs.
>
> Something I just thought of: that code doesn't take typedefs into account. 
> That loophole can be closed by using is(T Base == typedef) and inspecting 
> Base recursively if it evaluates to true. Implementing this is left as an 
> exercise to the reader ;).

WAITWaitwaitwait.  When the *hell* was .stringof added?

:D 





More information about the Digitalmars-d mailing list