Attribute inference for auto functions?
Walter Bright
newshound2 at digitalmars.com
Wed Apr 17 12:34:28 PDT 2013
On 4/17/2013 8:14 AM, Andrei Alexandrescu wrote:
> On 4/17/13 8:09 AM, Andrej Mitrovic wrote:
>> On 4/17/13, Regan Heath<regan at netmail.co.nz> wrote:
>>> Solution: You use 'auto' and compile the code producing a .di. With the
>>> fix Andrei mentioned the .di has the full and complete function signature,
>>> without 'auto', including return type and all deduced attributes etc.
>>
>> This doesn't work with voldemort types.
>
> It's not supposed to; voldemort functions are by definition non-modular.
The whole point of voldemort functions is that you cannot name the return type,
so there is no way to write a signature for it to put in the .di file. Hence, it
not working with voldemort types is moot.
More information about the Digitalmars-d
mailing list