Global Constant
Don Pomplun
Posts: 116
I want to define a DIAG constant that will be global to all objects in the project. The Scope Of Constants paragraph (p.199) discusses the Num#DEC syntax, but that seems to go in the wrong direction, hierarchically. i.e., it lets higher objects reference use constants in lower objects. I think what I want is to define a constant in the Top Object that all others can test to then perform the diagnostic steps.
Ant help?
TIA
Don
Ant help?
TIA
Don
Comments
What you can do is to create a low level object that just contains constant definitions ... and one dummy PUB method. The dummy method will take a few bytes, but won't be duplicated each time you include this object in others. You include this object in any higher level objects that need to reference one or more of the constants.