你使用虚函数竣工迟绑定。
微软正在研究通过反射和迟绑定来“开启”额外特性的可行性,但至今没有任何明确的计划。
Microsoft is looking into adding the ability to "light-up" additional features using reflection and late binding, but there are no definite plans as of yet.
为了支持运行时编译和迟绑定,由VisualBasic编写的核心服务的部分版本也是存在的。
A partial version of core services written in Visual Basic also exists for runtime compilation and late binding.
Ducktyping背后的概念非常简单,就是所谓的迟绑定;如果对象具有某个函数希望调用的所有方法,就可以将这个对象传递给该函数。
The concept behind duck typing, also known as late binding, is pretty simple; if an object responds to all the methods a function is expected to call, that object can be passed to the function.
例如,它能够通过迟绑定(即所谓的ducktyping)来使用对象,但却没有能力确定他们——这样的语言特性被普遍认为是和脚本编程是不相配的。
This is seen in mismatched language features such as the ability to consume objects via late binding, A.K.A. duck typing, but no ability to define them.
这也完全符合VB的所谓“做我所思,而非我言(dowhatImean, not what Isay)”的哲学,如早绑定与迟绑定。
That would certainly fit with VB's "do what I mean, not what I say" philosophy towards other issues like early vs. late binding.
这也完全符合VB的所谓“做我所思,而非我言(dowhatImean, not what Isay)”的哲学,如早绑定与迟绑定。
That would certainly fit with VB's "do what I mean, not what I say" philosophy towards other issues like early vs. late binding.
应用推荐