You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presently, a "variable" to be always assigned a value ( unless overwritten in algorithm ) has to be declared, then always assigned.
uint1 OF = uninitialised; // OVERFLOW FLAG uint1 UF = uninitialised; // UNDERFLOW FLAG OF := 0; UF := 0; // HOLD AT ZERO
Would it be possible/desirable to combine the declaration and always assignment?
e.g.
unit OF := 0;
My caution is that we already have =, <: and <:: as possibilities, but was thinking from a code readability point of view, easier to declare and always assign a value together when commenting.
Rob.
The text was updated successfully, but these errors were encountered:
Presently, a "variable" to be always assigned a value ( unless overwritten in algorithm ) has to be declared, then always assigned.
uint1 OF = uninitialised; // OVERFLOW FLAG uint1 UF = uninitialised; // UNDERFLOW FLAG OF := 0; UF := 0; // HOLD AT ZERO
Would it be possible/desirable to combine the declaration and always assignment?
e.g.
unit OF := 0;
My caution is that we already have =, <: and <:: as possibilities, but was thinking from a code readability point of view, easier to declare and always assign a value together when commenting.
Rob.
The text was updated successfully, but these errors were encountered: