Martin Baxter wrote: > The major difference I don't think anybody has mentioned is that since the > value of a constant is known at compile time, it can be inserted directly > into the resulting object code. So the value has only to be looked up once > - at compile time - whereas a variable always has to be re-evaluated at > runtime. A variable that's got from an accessor would seem to be even more > work because a handler has to be run to determine which variable to look up.
True, and for the extremely rare case where one is making a lot of references to a constant I suppose the extra time for the lookup might even become noticeable. But if I'm not mistaken the time differerence for calling an accessor is very, very small (fraction of a millisecond?), so in most usages wwould have no material detriment. -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms ___________________________________________________________ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
