DIP10005: Dependency-Carrying Declarations is now available for community feedback

rikki cattermole via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 14 19:02:37 PST 2016


On 15/12/2016 3:16 AM, Andrei Alexandrescu wrote:
> On 12/14/16 6:06 AM, rikki cattermole wrote:
>> On 14/12/2016 11:33 AM, Andrei Alexandrescu wrote:
>>> Destroy.
>>>
>>> https://github.com/dlang/DIPs/pull/51/files
>>>
>>>
>>> Andrei
>>
>> Others have brought up similar syntax to this:
>>
>> import(my.mod).Type!argsT(7)
>>
>> import(Identifier).Identifier
>>
>> It shouldn't be confused with string imports or the like and would be
>> more akin to a selective import.
>>
>> Pros:
>>  - Is an expression
>
> How does it then apply to declarations? -- Andrei

Like this?

import(my.mod).Type!argsT value;

Or?

import(my.mod).Type!argsT func(import(my.mod).Type!argsT arg) {

}


More information about the Digitalmars-d mailing list