Against enforce()

bearophile bearophileHUGS at lycos.com
Thu Mar 17 09:39:36 PDT 2011


Don:

> Ah, OK. I was pretty sure there wasn't a problem with delegates, didn't 
> realize that lazy was the issue. Nonetheless, I think we can just 
> overload enforce() to fix this problem.

In one of the answers I've written to Andrei I have shown this link, it shows the problem is caused by lazy:
http://d.puremagic.com/issues/show_bug.cgi?id=5746

What is the enforce() overload do you suggest to add to Phobos?

Bye,
bearophile


More information about the Digitalmars-d mailing list