[Issue 13079] Need 'this' to access member - function literal
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 14 23:48:06 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13079
--- Comment #10 from Daniel Čejchan <czdanol at gmail.com> ---
(In reply to hsteoh from comment #8)
> Ahh, I see. So you're basically using mixin as a macro system for generating
> code inside a single class. Makes sense.
>
> The following code works for me (dmd git HEAD):
> ...
> So obviously, it's possible to use a code block to generate declarations
> inside the class, at least on dmd git HEAD. You should be able to adapt this
> code to your needs. (The code in main() is just to prove that those
> declarations actually got inserted, you can ignore it.)
>
> Which version of dmd are you using?
http://dpaste.dzfl.pl/2f156080d7e3 :P
DPaste has 2.065
--
More information about the Digitalmars-d-bugs
mailing list