Overloading Lazy Vs. Non-Lazy

bearophile bearophileHUGS at lycos.com
Wed Aug 11 06:57:54 PDT 2010


dsimcha:

> An issue that's come up here several times before is that enforce()
> effectively disables inlining of the function it's used in.

This is a problem because many Phobos functions, even small ones, are sprinkled with enforce().
If the purpose of enforce() is just to stop the program/thread even in release mode, then it may be replaced by something light and simpler, that doesn't stop the inliner.

Bye,
bearophile


More information about the Digitalmars-d mailing list