With jBASE, the equates are handled by the pre-processor before they even reach the compiler:
source -> pre-processor -> compiler -> codegen Equates are elided before they reach the compiler, which knows nothing about them. So, once a line of text is processed it is fixed in stone and no subsequent equating will affect lines that are already processed. There is also macro processing in the pre-processor but I no longer remember if it works - I know I never documented it because I decided that macros were evil enough in C, never mind jBC applications. It also supports #ifdef etc as well. Jim On Thu, Apr 14, 2016 at 7:10 AM, Charlie Noah <[email protected]> wrote: > It works just like I would expect. If it were Microdata or others like it, > you may not even have been able to equate X to Y at all. X is equated > runtime, and just because Y changes later, that wouldn't affect X. That's > why you can re-equate variables later. > > Charlie > > On 04-13-2016 1:03 PM, Tuber wrote: > > What prints out? > > EQU Y TO 6 > EQU X TO Y > EQU Y TO 5 > PRINT X > > > > I thought the answer would be 5 because I thought EQU worked like a > pre-processor definition. ... Turns out it doesn't. > -- > -- > IMPORTANT: T24/Globus posts are no longer accepted on this forum. > > To post, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit this group at > http://groups.google.com/group/jBASE?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "jBASE" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > > > -- > -- > IMPORTANT: T24/Globus posts are no longer accepted on this forum. > > To post, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit this group at > http://groups.google.com/group/jBASE?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "jBASE" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- IMPORTANT: T24/Globus posts are no longer accepted on this forum. To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en --- You received this message because you are subscribed to the Google Groups "jBASE" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
