On Monday, 1 October 2012 at 08:00:47 UTC, Jakob Ovrum wrote:

The only real problem here is that you wrote a function called pow2 that effectively returns 6 unconditionally. I doubt your math professor would be particularly impressed. If you had used __ctfe properly, it would return the same value both at compile-time and runtime. At present, __ctfe is a necessary evil as CTFE can be severely crippled without it.

I solemnly swear not to use __ctfe improperly. But my problem with it is, that there *exists* the possibility of improper use of __ctfe.

Plus, I just realized, I've never actually met any math professor. I never went to a university (nor study programming for that matter).

Reply via email to