example for compile time function execution
Robert Fraser
fraserofthenight at gmail.com
Sat Apr 28 03:17:09 PDT 2007
Walter Bright Wrote:
> I keep racking my brain trying to come up with a short, pithy example of
> CTFE that uses AAs or struct literals. It should be just a few lines,
> and make it clear why CTFE is a great thing. I want to use it in
> presentations.
>
> Any ideas?
How about one that, given a function pointer/delegate and the name of a Java package, wraps it for the JNI with the correct naming scheme and C calling convention.
More information about the Digitalmars-d
mailing list