View Single Post
01-24-14, 06:11 PM   #16
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Rainrider View Post
It seems 3 lines are too much to read, Vlad. What the TE seemed to expect select to return is actually the result of the code snippet I posted. Knowing how unpack works, helps understanding how select works. That was the point of my previous point. Maybe I failed at it, maybe not. I also stated (s)he should not use it like that. So please read before you criticize.
The problem with posting "bad" examples and saying "don't use this" is that -- as you yourself are complaining -- people don't actually read the "don't use this" part, and end up using your cringe-worthy anti-example as real code in their real addon. I make a habit of never posting functional code that should not actually be used, and I strongly recommend you (and everyone else) adopt this habit, too. If you want to show how something works, make up an example that wouldn't make you want to gouge your eyes out if you saw it in a real addon.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote