How about a new property for class and struct to get the fully qualified name?
Heromyth
bitworld at qq.com
Fri Jul 17 02:44:52 UTC 2020
How about a new property for class and struct like `.stringof` to
get the fully qualified name?
I know the `fullyQualifiedName` can do this. If a new property
like `.qualifiedName` added to class and struct, the code blown:
@Middleware(fullyQualifiedName!(IpFilterMiddleware),
fullyQualifiedName!(BasicAuthMiddleware))
@Action string security() {
return "It's a security page.";
}
may be changed as:
@Middleware(IpFilterMiddleware.qualifiedName,
BasicAuthMiddleware.qualifiedName)
@Action string security() {
return "It's a security page.";
}
It looks better, does it?
More information about the Digitalmars-d
mailing list