Static Variable Scoping in D

Adam D. Ruppe destructionator at gmail.com
Wed Mar 24 02:11:45 UTC 2021


On Wednesday, 24 March 2021 at 02:06:42 UTC, Leo Custodio wrote:
> [snip]

D uses the inner-most name available when it can. You can ask it 
to look back at top level with a prefixed .:

z = y / .x; // use x from the top level



More information about the Digitalmars-d mailing list