In a message dated 5/18/2004 3:26:49 PM Eastern Daylight Time, [EMAIL PROTECTED] 
writes:

> Hi All,
> 
> I have a UniBasic program with hundreds of equate
> statements like
> 
> EQU V.SEC.SYNONYM TO
> COURSE.SECTIONS.REC.TABLE<I.COURSE.SECTIONS,15>

Fawaz, equates are processed at compile time not at run time.
Using "=" is processed at run time not at compile time.

So these are not equivalent, I would not do the change you suggested.  I would say 
these are being used for two purposes, one to shorten the name of the variable, 
however two would be to assign a meaningful name to the variable.

The purpose of the meaningful name is that when you read the code and it says:
V.CUSTOMER.NAME = "John"
its much more clear than using
CUSTOMER<10> = "John"

The use of an equate generates identical object code.  At compile time, the compiler 
merely replaces the simple reference with the more complicated reference.  So the 
execution speed  of the code does not change.

Will Johnson
Fast Forward Technologies
-------
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users

Reply via email to