Alex Tweedly <alex@...> writes: > The dictionary says that if you set a constant in a script but outside > any handler, then it can be used in any handler within the script; and > that's exactly what it does do ...
Constants have always been second-class citizens in the RR/LC world. You can have global variables and you can have constants but you can't have global constants, so constants have a script-local scope. You can't put constants in an include file because include files aren't supported on anything but server scripts. Constants have to be strings or decimal numbers. You can't have aggregate constants unless you're using glx2's preprocessor, so statements like constant twoPi = 2 * pi will fail. Long-standing bugs in the QCC about these. -- Mark Wieder _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
