Re:A new kind of inheritance in programming languages?
by benji-york on Tuesday July 16, 2013 @12:53PM
(#6053068)
This is called Acquisition. See http://c2.com/cgi/wiki?AcquisitionInheritance
[ Parent
| on HN ]
Re:A new kind of inheritance in programming languages?
by rivd on Tuesday July 16, 2013 @01:25PM
(#6053294)
the 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 ?