View Single Post
09-21-09, 07:03 AM   #11
Layrajha
A Frostmaul Preserver
 
Layrajha's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 275
Originally Posted by Cargor View Post
In this case, I would guess that it prints out the empty string (e.g. ""), since Blizz mostly doesn't check beforehand if the string is empty or not. If you set it nil, it would most likely result in an error.
Just try it
Set it to nil and disable lua errors!


...

/runawayinshame

Originally Posted by Cargor View Post
There are also examples where global strings are used in a secure environment and if you change them, they become tainted and can block code from functioning correctly.
A good example is the global string RANGE_INDICATOR (which is the small dot on action bars and the item-button of the quest tracker) - if you set it to "" to hide it, the item-button doesn't work anymore if you click it, because its environment is tainted.
Nice to know. I wouldn't have guessed that global strings could be used in any secure environment. Not that there's any problem with not being able to change RANGE_INDICATOR though
  Reply With Quote