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.
- A nice D coding pattern bearophile via Digitalmars-d-learn
- Re: A nice D coding pattern matovitch via Digitalmars-d-learn
- Re: A nice D coding patte... Ali Çehreli via Digitalmars-d-learn
- Re: A nice D coding pattern MattCoder via Digitalmars-d-learn
- Re: A nice D coding patte... bearophile via Digitalmars-d-learn
- Re: A nice D coding p... Meta via Digitalmars-d-learn
- Re: A nice D coding p... MattCoder via Digitalmars-d-learn
- Re: A nice D coding pattern Tobias Pankrath via Digitalmars-d-learn
- Re: A nice D coding patte... Ali Çehreli via Digitalmars-d-learn