Compile time function execution...

Jarrett Billingsley kb3ctd2 at yahoo.com
Thu Feb 15 20:38:09 PST 2007


"Derek Parnell" <derek at nomail.afraid.org> wrote in message 
news:15k9gflddwrnp.qzqynewwbuou$.dlg at 40tude.net...
> I'm thinking of the funny side this too, when it comes to putting some DbC
> validity tests in your code...
>
>   const float x = SomeCompileTimeFunc(1,2,3);
>   assert (x == 34.56); // Make sure the function worked.

You mean

static assert(x == 34.56);

;) 





More information about the Digitalmars-d mailing list