View Single Post
07-05-16, 08:53 AM   #8
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
One further thing I don't quite get about CallbackHandler and LibStub is why it is recommended that they are embedded into the lib that uses them. If the author supports disembedded use and the user installs a no-lib package, then it is up to the user to install all dependencies, isn't it?

What is considered best practice when a library uses another library? The particular case I have is that I'm updating LibSpellbook-1.0 (LSB) to use LibArtifactData-1.0 (LAD). Both of them use LS and CBH. LAD has to be loaded before LSB and thus will load LS and CBH itself. So it makes sense to me to also strip LS and CBH but yet again this is not recommended by their respective documentation.

This leads me to think that I'm missing the big picture here. How am I supposed to do it, when I want to offer disembedded use?
  Reply With Quote