And there might be additional functionality, e.g. to get the
object that has been bound to.
I was wondering about getting the object. If you can get the object, is is
possible to set the object? If there is something like
setboundobject(bound-object-method, object)
I don't think so. It sounds like a corner case, not much practical use.
You can get the dict from a partial with get(). You can change it with
function(), but there is no type checking at all. When using an object
instead of a dict type checking would be very relevant.
I agree, and I don't see it as a problem at all; it's easy to get the
functionality. Consider the following
var methodNameAsVar(obj: BaseType, ...args: any) => {
call(obj.methodName, args)
}
methodNameAsVar(obj, arg1, arg2)
With possible runtime errors.
-ernie
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/6d6691b5-cefa-4f09-f29b-7b272efa27b7%40raelity.com.