www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - static code generation p2

reply "js.mdnq" <js_adddot+mdng gmail.com> writes:
Take the example here:

http://forum.dlang.org/thread/vrupqijwqmccdpabmken forum.dlang.org

note how he provides the body of the method in the mixin. I would 
like to something similar to what he has done but provide the 
body of the mixin after the fact(so to speak).

Something like

class Test {
   mixin make_method!(Test)

}
Dec 12 2012
parent "js.mdnq" <js_adddot+mdng gmail.com> writes:
On Thursday, 13 December 2012 at 01:09:28 UTC, js.mdnq wrote:
 Take the example here:

 http://forum.dlang.org/thread/vrupqijwqmccdpabmken forum.dlang.org

 note how he provides the body of the method in the mixin. I 
 would like to something similar to what he has done but provide 
 the body of the mixin after the fact(so to speak).

 Something like

 class Test {
   mixin make_method!(Test)

 }
Oops, would be nice to have tab's actually insert tabs instead of going to the send button ;)
Dec 12 2012