Accessing static data of functions
Ogi
ogion.art at gmail.com
Tue Oct 19 17:59:00 UTC 2021
On Tuesday, 19 October 2021 at 08:31:47 UTC, Mike Parker wrote:
> Personally, this isn't something I would expect, nor would I
> worry about it. Static variables in functions are generally
> there because they are scoped to that function, to be used
> within that function over the run time of the program. There
> shouldn't be any reason whatsoever for them to be accessible
> outside the function.
The way I see it, static variables are just global variables with
a restricted visibility, and we should be able to bypass
visibility rules if we really need the same way we can bypass
member visibility with `getMember`.
More information about the Digitalmars-d
mailing list