Boost logo

Proto :

Subject: Re: [proto] Held nodes by value for Fundamental types
From: Fernando Pelliccioni (fpelliccioni_at_[hidden])
Date: 2012-04-10 09:57:07


On Tue, Apr 10, 2012 at 3:12 AM, Joel Falcou <joel.falcou_at_[hidden]> wrote:

> 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 :).
>
>
Right. I agree with your opinion.

Maybe by defining another domain like "default_domain_fundamental_by_value"
(please don't use that name :-)).
Thus, the user saves typing "as_child" if all she/he is looking for is to
change this behavior.

Regards,
Fernando.



Proto list run by eric at boostpro.com