example for compile time function execution

Jascha Wetzel "[firstname]" at mainia.de
Sun Apr 29 09:45:53 PDT 2007


it's more than a few lines, but the regex compiler i posted about
recently could be run at compile time with structs+AAs.

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?



More information about the Digitalmars-d mailing list