Ahhhh...I THINK I get it now. Blizz, I checked your e-book, but I still can't grasp it. Then again, until two weeks ago, I was about the same on attr_'s, but then they just "clicked."
So...long story short, an alias allows you to just add on to the end or beginning of a method, without rewriting, or overwriting a method?
game_guy and rye, those examples DEFINITELY help. Thank you.
And I notice that usually, after alias-ing, when people redefine the original method, they add the name of the new metho-
Ok, it just dawned on me, midsentence. Correct me if I'm wrong, but doesn't that mean that the old method has:
$crappy_extra_variable = :poop
old_method
so that it overwrites the initial method, but then IMMEDIATELY calls the COPY OF ITSELF. IE, it adds it, the short way- just like you said, Rye!
I think I get it, now! *inspiration*
So then, last questions: How does this help compatibility? I know that you mentioned this in the e-book, Blizz, but I didn't really get how/why.
And by
Quote from: Blizzard on June 11, 2009, 05:00:36 am
Sure, just rename one of the clashing aliases. Keep in mind to search the script to find all places where that alias was called (usually only one place) and change it as well.
, which part do you mean to rename?
That should solve my problem, and I'll also walk away understanding aliasing.
Sorry for troubling everyone, but thank you all, VERY MUCH