Playing around with aliasthis

Rory via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 25 22:20:27 PST 2016


Hi,

I need some help understanding dmd and I'm wondering where I 
should ask.

I have made a multiple aliasthis implementation that currently 
only works for structs. If I try to use a class then the compiler 
segfaults in .
The implementation basically just changes aggregate.aliasthis to 
be aggregate.aliasthis(Type expectedType) and then that function 
picks a matching aliasthis option and returns it.

Thanks,
Rory


More information about the Digitalmars-d mailing list