One of the programming standards I've seen names all equates with a
trailing $.  System subroutines start with a $ and I thought this was a
pretty slick way of knowing instantly that it's an equate, not a
variable, while browsing the source code.

BobW

> 
> Coming from a C background, I always use EQUates for any constant
> that isn't going to change.  I look at EQUates the same as a C
> #define statement.  I bet you instructor didn't like that use of
> EQUates because he's see too many times where somebody forgets that
> the "variable" is really a constant and gets an error when trying to
> assign a value to the constant.  That is specifically why I like to
> use EQUates like this, so I don't have to worry about a constant
> getting clobbered.
> 
> Ray
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to