The default can be used as a property is very bad design.

Adam D. Ruppe destructionator at gmail.com
Fri Jan 25 02:32:27 UTC 2019


On Friday, 25 January 2019 at 02:09:29 UTC, Brian wrote:
> OH NO !

This has nothing to do with property. It is just a local variable 
- those always take precedence over global ones.

Use the module scope operator to use one outside; the leading dot:

>         string testConfig = config().test;

string testConfig = .config().test; // note the leading dot



More information about the Digitalmars-d mailing list