Limitations in CTFE?
Robert Fraser
fraserofthenight at gmail.com
Fri Jun 1 12:46:14 PDT 2007
I'm sure this has been discussed numerous times before, but I couldn't find it in the first ten pages of a newsgroup search, so here goes:
What are the requirements for a function to be executed at compile-time? I understand...
* no heap allocation/object instantiation
* no casting
* no side effects
* no shared memory access/state beyond the scope of the function
* no synchronization/multithreading
* no pointer/reference usage
* no out/ref parmeters
Am I right about this? Anthing else?
More information about the Digitalmars-d-learn
mailing list