TypeInfo in the library
Max Samukha
maxsamukha at gmail.com
Mon Feb 17 01:32:59 PST 2014
On Friday, 14 February 2014 at 20:05:53 UTC, Rainer Schuetze
wrote:
>
> The only drawback I see is that it makes compilation a bit
> slower and pollutes object files with code just executed during
> CTFE.
Currently, the bloat can be reduced like this:
void foo()
{
if (__ctfe)
{
// function body
}
else
asm { naked; }
}
But that's an awful dangerous hack. A better solution is needed.
More information about the Digitalmars-d
mailing list