3 ms·
This is called Acquisition. See http://c2.com/cgi/wiki?AcquisitionInheritance http://c2.com/cgi/wiki?AcquisitionInheritance
by benji-york 13y ago
This is called Acquisition. See http://c2.com/cgi/wiki?AcquisitionInheritance http://c2.com/cgi/wiki?AcquisitionInheritance
- rivd 13y agothe c2 article speaks of the difference between dynamic scoping and acquisition as the former being dependent on call context and the latter on "where you put it". Can i conclude acquisition can be done in javascript by binding function objects ? var fn = somefunc.bind(other_object) Or is this still dynamic scoping because it only sets the value of this for fn ?