Can a constant be global?

Graham Samuel livfoss at mac.com
Mon Mar 27 05:52:30 EST 2006


This is another of those things that I've lived without for years - I  
normally use globals to contain text strings which may change if the  
human language of the app changes (what is the Welsh for "Cancel"? -  
don't know, but I know someone who can tell me!), so that all the  
values can be initialised in one handler when the app starts up: but  
after all this time I thought I'd try using constants instead.

However neither the RR documentation nor my experiments seem to  
suggest that there is a way of making constants global (i.e  
constant). Can this really be true? If so, they have a crushing  
disadvantage with respect to globals. After all, RR's own constants  
are global. I guess I've missed something.

Thanks to anyone who can dispel another of my clouds of ignorance.

Graham


----------------------------------------
Graham Samuel / The Living Fossil Co. / UK and France




More information about the Use-livecode mailing list