[cfe-dev] RFC: Function Overloading in C

Sebastian Redl sebastian.redl at getdesigned.at
Fri Feb 13 09:41:00 PST 2009


Douglas Gregor wrote:
>
> On Feb 13, 2009, at 9:01 AM, Fariborz Jahanian wrote:
>
>>
>>
>> It looks weird to apply extern "C++' on an overloadable 'static'
>> function.
>
> Good point! These functions will usually be inline static, e.g.,
>
>   extern "C++" inline static tgsin(double d) { return sin(d); }
>
> is rather confusing.
>
> Now I definitely like __attribute__((overloadable)) best.

Right, I'm convinced.

Sebastian



More information about the cfe-dev mailing list