I've just been browsing through the 1.10 discussion thread, shown here:
http://forums.worldofwarcraft.com/th...n&T=286547&P=8
On that page, Iriel and slouken discuss the passing of parameters to On- events (in XML):
Q u o t e:
I'm not sure if that's doable either, but if the globals were still set the way they are now, code written in On* blocks could stay as it is today, and code that wishes to take advantage of parameters in the XML could call this:SetScript in the OnLoad block.
-- end Iriel quote -- begin slouken quote --
That means that every dispatch of a handler would have to both set global variables and put them on the stack. It seems like a lot of work for a minority case.
I'll point out that you could easily have this in your own code by creating an event dispatch wrapper that does this.
|
Whoa! I thought the events were generally untouchable by us authors! What's he talking about? How would one write an event wrapper? Does this imply that we can produce events as well?