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 ?
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 ?