local function Constructor()
But am I underestimating consequences?
If AceGUI lacks something like
if type(constructor)=='function' then
error(("You can't inherit from not existant Widget type %s"):format(type))
I suppose there is a design choice behind it but I cant figure it.
What am I missing? What am I doing wrong?
Thanks for your answer, and I will check your link as soon as wowace is back up (error 500 right now) but may be my question was misleading.
My concern is about not altering a widget coming from pool. If what I need is just the "raw" widget (i.e. the one directly returned from the constructor), isn't it an overkill to pull the full feratured widget from the pool? And besides that, as I find calling the constructor from AceGUI.WidgetRegistry works and suites my need, my other concern is: am I at risk of breaking something?
there is pretty much no difference in pulling from the constructor vs pulling from "The Pool"
except that you may save some memory when pulling from the pool (cause you might be reusing already created widgets that have been returned to the pool) other than that your "raw" widget contains the exact same info as the "full featured" widget All AceGUI is is a fancy frame recycler that keeps track of the widgets and creates more if needed.