First life-signs of type functions

Stefan Koch uplink.coder at googlemail.com
Tue May 12 15:42:03 UTC 2020


On Tuesday, 12 May 2020 at 14:41:52 UTC, Max Samukha wrote:
> On Tuesday, 12 May 2020 at 14:14:21 UTC, Stefan Koch wrote:
>> are you sure that that is the case for alias declarations?
>> For me
>> alias a = "Foo";
>> causes Error: basic type expected, not "Foo"
>> Which is identical to how they behave in type functions;
>
> Can this old design flaw be fixed? 'alias a = Alias!"Foo"' 
> shouldn't be necessary. We should be able to alias directly 
> everything that we can pass to an alias template parameter.

Which name does "Foo" have?
There is a good reason for separating Symbols and literals.


More information about the Digitalmars-d mailing list