How about a new property for class and struct to get the fully qualified name?

Per Nordlöw per.nordlow at gmail.com
Fri Jul 17 15:36:53 UTC 2020


On Friday, 17 July 2020 at 03:19:18 UTC, rikki cattermole wrote:
> On 17/07/2020 2:44 PM, Heromyth wrote:
>> @Middleware(fullyQualifiedName!(IpFilterMiddleware), 
>> fullyQualifiedName!(BasicAuthMiddleware))
>>      @Action string security() {
>>          return "It's a security page.";
>>      }
>
>     @Middleware(fullyQualifiedName!IpFilterMiddleware, 
> fullyQualifiedName!BasicAuthMiddleware)
>     @Action string security() {
>         return "It's a security page.";
>     }
>
> I would prefer we offered UFCS to work on types instead. This 
> would give the same syntax as you wanted and it is not specific 
> to the use case.

Yes, please


More information about the Digitalmars-d mailing list