Is there any hope for "lazy" and @nogc?

Shachar Shemesh shachar at weka.io
Tue Jul 31 07:49:40 UTC 2018


On 31/07/18 10:29, Mike Franklin wrote:
> Please clarify if I'm missing the point.

You are. I want something along the lines of:
assertEQ(a, b, "a and b are not equal");

When run, it would issue an assert that says:
Assertion failed: 3!=7: a and b are not equal

Hooking it later is not an option. I am actually interested in a 
different assert like function.

Whether for asserts or otherwise, the "lazy" feature is completely 
incompatible with function attributes, and that's not good.

Shachar


More information about the Digitalmars-d mailing list