Assertion failure: '0' on line 1215 in file 'glue.c'

Jonathan M Davis jmdavisProg at gmx.com
Thu Oct 31 14:06:54 PDT 2013


On Thursday, October 31, 2013 20:39:36 bearophile wrote:
> Wolftein:
> > Assertion failure: '0' on line 1215 in file 'glue.c'
> > 
> > When trying to compile this:
> > 
> > TypeTuple!(void delegate(Event), EventPriority, ulong)[uint]
> > _ownerList;
> > 
> > Is that a compiler bug or i'm doing something that i don't
> > suppose to do.
> 
> It seems both a compiler bug fit for bugzilla, and a bug in your
> code (TypeTuples are not meant for delegates, I think).

Ah, yeah. TypeTuple won't work there (I missed that and thought that he was 
using a Tuple). TypeTuple is really only for metaprogramming, and it's a 
compile-time only entity, so it won't work in an AA. std.typecons.Tuple is 
what he'd have to use.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list