Boost logo

Proto :

Subject: Re: [proto] Held nodes by value for Fundamental types
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2012-04-10 02:12:42


On 10/04/2012 00:00, Eric Niebler wrote:
> Thanks. I thought long about whether to handle the fundamental types
> differently than user-defined types and decided against it. The
> capture-everything-by-reference-by-default model is easy to explain and
> reason about. Special cases can be handled on a per-domain basis as needed.

By-value capture of fundamental type is the classical way people do it
in hand-made ET code. The ad-hoc support in proto is IMHO better as you
may really want to capture reference and by the status of Proto of a
EDSL toolkit, flexibility is really wanted :).


Proto list run by eric at boostpro.com