stringof and mixins when the types aren't available

David Nadlinger code at klickverbot.at
Sun Jun 16 18:05:25 PDT 2013


On Monday, 17 June 2013 at 00:56:09 UTC, Adam D. Ruppe wrote:
> […]
>
> The stringof doesn't work because the name is unknown. But the 
> longer one, currently uncommented, doesn't seem to work either. 
> dmd just dumps a whole lot of trash errors referencing phobos 
> and nothing specifically about this code... eyeballing it, I 
> don't think I screwed it up though.
>
>
> Is this the right principle at least?

Yes, it is. Seems like you managed to immediately hit a DMD bug – 
"dmd b.d a.d" works using DMD 2.063.1, but reversing the module 
order produces a stream of arbitrary error messages.

David


More information about the Digitalmars-d mailing list