Ad hoc ranges

Jonathan M Davis jmdavisProg at gmx.com
Thu Jan 20 18:44:39 PST 2011


On Thursday, January 20, 2011 16:19:54 bearophile wrote:
> Tomek Sowiñski:
> > auto range(T, Whatever)(lazy bool _empty, lazy Whatever _popFront, lazy T
> > _front) {
> 
> I am not sure, but I think Andrei has deprecated the "lazy" attribute.

In general or on a specific function? I'm pretty sure that lazy isn't going 
anywhere as far as the language goes. It's used on enforce, and Andrei hasn't 
wanted to make enforce take a non-lazy attribute. Also, for cases like the unit 
testing functions that I've been working on to get into Phobos, the loss of lazy 
would be pretty devastating. You could still do the, but it would be much 
uglier.

- Jonathan M Davis


More information about the Digitalmars-d mailing list