TypeFunction example creatiing a conversion matrix

user1234 user1234 at 12.de
Thu Oct 1 08:57:27 UTC 2020


On Thursday, 1 October 2020 at 08:52:46 UTC, Stefan Koch wrote:
> On Thursday, 1 October 2020 at 08:38:43 UTC, user1234 wrote:
>> On Thursday, 1 October 2020 at 08:26:53 UTC, Stefan Koch wrote:
>>> On Thursday, 1 October 2020 at 08:21:24 UTC, Stefan Koch 
>>> wrote:
>>>
>>>> string makeConvMatrix(alias[] types ...)
>>>
>>> Wait .... What the Hell?
>>> Why did this compile?
>>>
>>> I must have fixed parsing `alias[]` ?
>>
>> By the way why cant you pass directly the types (i.e lowercase 
>> builtins) ?
>
> parser limitations.
>
> The grammar won't allow you to do that.

Ah indeed. Eventually you could imagine a syntax that makes the 
parser take a special path but I suppose that for now  this is 
just a detail.


More information about the Digitalmars-d mailing list