>Let's use your example though.
>
>?pi() is IMO the ultimate way to get PI. Except that following is inconvenient:
>
>LOCAL m.lcSetDecimals
>m.lcSetDecimals = SET("DECIMALS")
>SET DECIMALS TO 18
>?PI()
>SET DECIMALS TO &lcSetDecimals.
>
>Which is more inconvenient?
>
>PI = oApp.GetPublic("PI")
>
>That kind of call opens up more flexibility in the design. GetPublic can be standardized and overridden. It can hide the complexity of a parameter object or whatever. I don't think there's a need to have one get and set method per variable, do you?
Yes, I like this idea. You pass the name of the constant and get it back using one public method of the global object.
If it's not broken, fix it until it is.
My Blog