ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] [mpl] The concept of laziness
by David Abrahams other posts by this author
Sep 29 2005 12:09PM messages near this date
Re: [boost] [1.33.1][iostreams] Timetable and patches | [boost] call_traits
SOURCE Cromwell Enage <sponage@[...].com>  writes:

>  I remember a thread that ran for a while on this
>  topic, and I need to make sure I've wrapped my head
>  around it correctly.  

I think you're referring to Vesa Karvonen's Lazy MPL (not sure if
that's what he called it).

>  Here are my takes on laziness:
> 
>  <take id="point-1">
>  A metafunction returns lazily if it can be used
>  interchangeably with its return type.  

I don't think that's the right way to think about it; Vesa's laziness
is not about how things are returned, but about the treatment of
arguments.  A valid lazy metafunction argument is one that has a
nested ::type.  In other words, all lazy metadata are MPL nullary
metafunctions.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved