These forums are in read-only mode. Please see this news post for more information.

New forums can be found here


Go Back   WowAce Forums > Addon Chat > Frameworks
Frameworks Framework Discussion

Reply
 
Thread Tools
Old 05-18-2009   #11
dpsgnome
Junior Member
 
dpsgnome's Avatar
 
Join Date: May 2006
Posts: 84
Default Re: LibStub - Enhancing/Instrumenting

You're not replacing LibStub:GetLibrary(), which is the real API. You're only replacing the __call metamethod, which is a shortcut for the API. If something uses the GetLibrary API ... (dotdotdot)
dpsgnome is offline   Reply With Quote
Old 05-18-2009   #12
sylvanaar
Legendary Member
 
Join Date: Nov 2006
Posts: 2,876
Default Re: LibStub - Enhancing/Instrumenting

I think it was my intention not to replace GetLibrary, just the __call. In my head I thought that would not affect the cases where a library was embedded into an addon (which i didnt really care about). Just the ones where it was used via a local reference. I could be totally wrong about that.

I could just make my own LibStub which does what i want, and replace the libstub in the global table, and if i were to replace GetLibrary, i would probably just replace all of it.
sylvanaar is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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

Forum Jump


All times are GMT. The time now is 03:18 PM.