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

2013-10-31 Thread Wolftein
On Thursday, 31 October 2013 at 19:48:19 UTC, Wolftein wrote: On Thursday, 31 October 2013 at 19:39:37 UTC, bearophile wrote: Wolftein: Assertion failure: '0' on line 1215 in file 'glue.c' When trying to compile this: TypeTuple!(void delegate(Event), EventPriority, ulon

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

2013-10-31 Thread Wolftein
On Thursday, 31 October 2013 at 19:39:37 UTC, 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 doi

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

2013-10-31 Thread 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.

Cast delegate and functions.

2013-10-31 Thread Wolftein
void delegate(Event) void delegate(T) Where T is a class that inherits Event. I'm trying to cast (void delegate(T)) to (void delegate(Event)) to be able to store them in a map, but when i cast them i get null exeception. Same thing for cast things like this TemplateClass!Plugin TemplateClass

Re: Cast delegate and functions.

2013-10-31 Thread Wolftein
On Thursday, 31 October 2013 at 13:12:31 UTC, Wolftein wrote: void delegate(Event) void delegate(T) Where T is a class that inherits Event. I'm trying to cast (void delegate(T)) to (void delegate(Event)) to be able to store them in a map, but when i cast them i get null exeception.

Error when trying to compile with --profile.

2013-10-30 Thread Wolftein
Using --debug or --release works fine. But when i use --profile i get: c:\Program Files (x86)\DLang\dmd2\windows\bin\..\..\src\phobos\std\path.d(2187): Error: balancedParens is not nothrow c:\Program Files (x86)\DLang\dmd2\windows\bin\..\..\src\phobos\std\path.d(2188): Error: balancedParen

Dynamic load from another context

2013-10-30 Thread Wolftein
I'm trying to design a plug-in system for my game, and i would like to share static members from both context (Application, Shared Library). I found out that i can get the address of a __gshared at compile time, so my question is, is it possible to build an associative array at compile-time?

Re: Array of associative array.

2013-10-28 Thread Wolftein
On Monday, 28 October 2013 at 21:27:46 UTC, Auto cannot infer type from initializer wrote: On Monday, 28 October 2013 at 21:26:41 UTC, Auto cannot infer type from initializer wrote: public static CompilerTable = [ /// \brief