Attribute inference for auto functions?

deadalnix deadalnix at gmail.com
Sat Apr 20 00:18:41 PDT 2013


On Saturday, 20 April 2013 at 07:03:55 UTC, Dicebot wrote:
> On Saturday, 20 April 2013 at 06:32:50 UTC, deadalnix wrote:
>> On Saturday, 20 April 2013 at 06:24:36 UTC, Walter Bright 
>> wrote:
>>>> In general we lack a mechanism to choose what an attribute 
>>>> bind to.
>>>
>>> No, we don't. The attribute binds to the declaration.
>>>
>>
>> In general we lack a mechanism to choose what direction we 
>> turn to.
>> No, we don't. We always turn to the right.
>
> I am quite sure Walter has meant that linkage attribute was not 
> supposed to be tied to a type by design. If you want to use it, 
> you need a symbol (==declaration) and there can be only one at 
> a time.

You don't need a symbol. They also control the ABI, and this 
isn't always related to a specific symbol.


More information about the Digitalmars-d mailing list