I've been experimenting with D for a little while now. For the most part, I've been able get help from the language/library reference and IRC. But not this time.

So here's the thing: http://dpaste.dzfl.pl/14680a8cec77

I've run it through Dustmite to reduce it to a smaller chunk of code. It runs just fine at runtime, but once I try to run "parseTemplate" during compile time/CTFE, it fails with this error:

/d815/f521.d(37): called from here: this.parser.parse() /d815/f521.d(77): called from here: parseTemplate("child2.html", genFileTable()) dmd: statement.c:293: ErrorStatement::ErrorStatement(): Assertion `global.gaggedErrors || global.errors' failed.

Usually when running into CTFE limitations, I've been able to understand what I'm doing wrong from the error messages, but this one doesn't make any sense to me.

I hope someone with more D experience can tell me what's going on here, and how to fix it.

Thanks,
Olav.

Reply via email to