Using closure in function scope to make "real" private class members
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Wed Jun 8 14:43:00 UTC 2022
On Wednesday, 8 June 2022 at 13:14:43 UTC, Ola Fosheim Grøstad
wrote:
> there is a good reason for having "@safe" and "@pure", the
> grammar ought to be unambiguous with "safe" and "pure" without
> making them keywords.
Ack, it is "pure" (I never use it) but "@nogc", "@trusted" etc.
Maybe it is possible to add «hidden» without making it a keyword?
I guess one will have to look at the productions for the
internals of a class body.
I suspect a lot of the @keywords could go if one wrote a new
parser from scratch.
More information about the Digitalmars-d
mailing list