Identifier too long - Should this be considered a bug?
Jarrett Billingsley
kb3ctd2 at yahoo.com
Sat Oct 13 07:00:15 PDT 2007
"Janice Caron" <caron800 at googlemail.com> wrote in message
news:mailman.418.1192276971.16939.digitalmars-d at puremagic.com...
> It's OK. I've decided to do things differently so as not to encounter
> the problem.
>
> Thanks guys.
I also ran into this with my MiniD binding library (very similar to Kirk's
Pyd), but at least for me it was very easy to solve. Instead of writing
something like:
WrapModule!(
"moduleName",
AMember,
... 150 more members ...
)();
I did:
mixin WrapModule!(...) WM;
WM.WM();
The compiler won't generate that extremely long symbol name if you use it in
a mixin.
The compiler does actually compress the symbol names; you'll see all kinds
of scary characters if you i.e. use -profile or -cov, or just look at the
debug symbols.
More information about the Digitalmars-d
mailing list