Description
\"On compiling, UnifAce treats procedure local variables like fields. Or better, a \"\"valid name\"\" could be a variable or a field. When the procedure is within a component, UnifAce trys after the syntax check to find the \"\"name\"\" in the pool of the entity fields and the declared variables. If there is no match, a warning will write to the message frame. When the procedure is a globale one, after the syntax check there is only a check against the declared variables. If the name not found, no furher check will done and no message will be displayed. Except of few cases, there is no need to access fields in globale procedures. So to get a warning when a \"\"name\"\" is not a variable and not a field, an enhancement to the proc language will be nice\"
Use Case
\"Two new features will be needed: * New VariableSpec in VARIABLES \"\"field\"\" {datatype}
Importance
It is very hard to find missspelled variables names in a globale procedure as there is no warning at all. On runtime, there is a warning running through the message line but no possiblity to catch this kind of error. To write error free programms, it is very important to have a warning on compile time, not at runtime!
Type
Scripting/Coding
Operating System
Not Applicable
Status
Open