Re: feature request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux