Re: Named parameters

2015-03-17 Thread David Brown
On 16/03/15 17:34, Marc Glisse wrote: > On Mon, 16 Mar 2015, David Brown wrote: > >> In a discussion on comp.lang.c, the subject of "named parameters" (or >> "designated parameters") has come up again. This is a feature that some >> of us feel would b

RE: Named parameters

2015-03-16 Thread Nathan Ridge
Note that a proposal for named arguments was recently presented to the C++ standards committee [1], and they did not seem receptive to it [2]. The proposal was for a different syntax (name : value), but the objections were not related to the syntax. Regards, Nate [1] http://open-std.org/JTC1/S

Re: Named parameters

2015-03-16 Thread Arnaud Charlet
> >If only the first variant is allowed (with the named parameters in the > >order declared in the prototype), then this would not affect code > >generation at all - the designators could only be used for static error > >checking. > > > >If the second variant i

Re: Named parameters

2015-03-16 Thread Toon Moene
only the first variant is allowed (with the named parameters in the order declared in the prototype), then this would not affect code generation at all - the designators could only be used for static error checking. If the second variant is allowed, then the parameters could be re-ordered. This is

Re: Named parameters

2015-03-16 Thread Marc Glisse
On Mon, 16 Mar 2015, David Brown wrote: In a discussion on comp.lang.c, the subject of "named parameters" (or "designated parameters") has come up again. This is a feature that some of us feel would be very useful in C (and in C++). I think it would be possible to includ

Named parameters

2015-03-16 Thread David Brown
Hi, In a discussion on comp.lang.c, the subject of "named parameters" (or "designated parameters") has come up again. This is a feature that some of us feel would be very useful in C (and in C++). I think it would be possible to include it in the language without leading t