You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
When calling a "new" Module, the new(...) functions will be called. If the Module includes Mixins, then their new(...) functions will be called as well. For some, this may not be acceptable, due to the Mixins requiring a different set of arguments.
Solution:
Introduce a new function __new(...), which will override a Mixin's new(...) call if one exists, otherwise fallback to the default new(...) function.
The text was updated successfully, but these errors were encountered:
💡 Idea:
Problem:
When calling a "new"
Module
, thenew(...)
functions will be called. If theModule
includesMixins
, then theirnew(...)
functions will be called as well. For some, this may not be acceptable, due to theMixins
requiring a different set of arguments.Solution:
Introduce a new function
__new(...)
, which will override aMixin
'snew(...)
call if one exists, otherwise fallback to the defaultnew(...)
function.The text was updated successfully, but these errors were encountered: