feature request

Jonathan Wakely jwakely.gcc@gmail.com
Wed Apr 20 10:32:00 GMT 2016


On 20 April 2016 at 05:52, Jim Michaels wrote:
>
>
> On 4/19/2016 2:05 AM, Jonathan Wakely wrote:
>>
>> On 19 April 2016 at 09:38, Jim Michaels wrote:
>>>
>>> in c and c++, please support default assignment to non-member functions.
>>> thanks. example:
>>>
>>> void abc(std::string filename, bool doit=false);
>>>
>>> this should not affect shared libraries/dlls/so.
>>
>> C++ already supports this.
>>
>> C doesn't support any default arguments, and that's unlikely to change.
>
>
> if it did, people would be very very happy - I wonder what its effect on
> DLLs would be?

None, default arguments are purely syntactic sugar, resolved entirely
at the call site.



More information about the Gcc-help mailing list