CTFE determination?

bmeck bmeck at stedwards.edu
Mon Sep 15 08:37:21 PDT 2008


Im not arguing that we should enforce this, just allow a static if and for some things like gui driven programs that may use Regex a lot or physics applications where large math problems can occur in somewhat repetitive order it would make things a bit easier to manage if I could tell the compiler if you have this at compile time, do it. I don't see why repetitive hard coded values would be a problem, but as you said the price of analysis is a problem at many times especially when you could be using pointers and your ctfe gets thrown away almost immediately. The current state of the compiler has no option for this static analysis but I do believe it should give the opportunity to have a tool built onto it (D's CTFE is plenty if you could get a static if working to see if params are available at compiletime) for such a thing. I hate the use of multiple programs since you almost always end up writing a script to combine them anyway, just give the thing an external API and good riddance :P.



More information about the Digitalmars-d mailing list