[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 I

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 implicat

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

2012-04-09 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 per