> I have seen (2) references to evil & Global Variables -.- > Should I avoid using this as a rule? > Any negative drawbacks I should be aware of?
Well, the main reason global variables* should be avoided is the risk of naming clashes - for example, if a plugin happened to use a global variable named GLOBAL_MYVAR, the above script would change that variable's value, which might lead to unexpected behavior. However, for your purposes, you shouldn't have to worry about it too much. -- F. * http://en.wikipedia.org/wiki/Global_variable --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@googlegroups.com To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---