Thread Tools Display Modes
11-15-12, 11:15 AM   #21
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
There is a point to the library though. Instead of creating 100+ event frames for 100 addons, you have 1 frame delivering events to them. Frames are the most expensive single value object in the system memory-wise. The problem is introducing these libraries to new programmers too early and making them believe this is how the WoW API works, wrong and completely oblivious to what the library is doing for them.



Originally Posted by AnrDaemon View Post
Phanx, you making assumptions in the void
What Phanx says is true. Frames are the only object in the WoW API that can receive events. AceEvents-3.0 is the most widely used library if not the only one that is made to handle events too. What is being said is AceEvents-3.0 uses a frame to run its event dispatcher. Look at the code for yourself if you don't believe us, although it's a complete mess.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 11-15-12 at 11:28 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » separate modules within 1 addon


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off