A nice D coding pattern

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 25 09:01:23 PST 2014


That's a neat trick, although if preconditions were able to be 
run at compile time when possible you wouldn't have to resort to 
using enum to force CTFE (you've talked a bit about this before I 
remember). Thinking about something like a good ranged number 
implementation, we can now get almost all the way there. Manually 
having to specify enum is still an undesirable.


More information about the Digitalmars-d-learn mailing list