Re: [proto] Held nodes by value for Fundamental types

2012-04-10 Thread Joel Falcou
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

Re: [proto] Held nodes by value for Fundamental types

2012-04-10 Thread Fernando Pelliccioni
On Tue, Apr 10, 2012 at 3:12 AM, Joel Falcou joel.fal...@lri.fr 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

[proto] Held nodes by value for Fundamental types

2012-04-09 Thread Fernando Pelliccioni
Hello, I'm wondering if it would be appropriate to treat the fundamental types (char, short, int, double, ...) by value, by default. I wrote this simple piece of code. I'm not sure if I'm leaving without considering any other implication, but I think it may be an improvement. Please, tell me if

Re: [proto] Held nodes by value for Fundamental types

2012-04-09 Thread Eric Niebler
On 4/9/2012 2:21 PM, Fernando Pelliccioni wrote: Hello, I'm wondering if it would be appropriate to treat the fundamental types (char, short, int, double, ...) by value, by default. I wrote this simple piece of code. I'm not sure if I'm leaving without considering any other implication,