example for compile time function execution

Hasan Aljudy hasan.aljudy at gmail.com
Fri Apr 27 19:12:48 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?

a function that takes a class name and a few members, and generates 
method for saving and loading the object from a SQL databse, or 
something like that.



More information about the Digitalmars-d mailing list