On Sunday, June 24, 2012 14:57:37 Namespace wrote:
> > My guess is that you've got something recursive going on
> > (possibly a recursive
> > template instantiation, though I don't see any reason why that
> > would occur),
> > which causes it to eat up more and more memory, until the OS
> > kills it.
> > 
> > Report it as a dmd bug: http://d.puremagic.com
> > 
> > - Jonathan M Davis
> 
> All right, but have you any workaround?
> As long as it endures to fix a bug in dmd, i'm a old men when i
> can work with it.

This might work:

this(U)(U obj)
    if(is(U : T) && !is(U == typeof(null)))
{
}


- Jonathan M Davis

Reply via email to