V2EX  ›  英汉词典

Late Binding

定义 Definition

Late binding(晚期绑定/后期绑定):指在程序运行时(而不是编译时)才决定要调用哪个函数/方法、使用哪个实现或解析哪个符号的机制。常见于动态语言反射虚函数/多态以及某些组件技术(如 COM 自动化)中。也可泛指“把决定推迟到最后一刻”的绑定策略。

例句 Examples

Late binding lets the program decide which method to call at runtime.
晚期绑定让程序在运行时决定调用哪个方法。

In a plugin-based system, late binding can improve extensibility, but it may also hide errors until the code is executed.
在基于插件的系统中,晚期绑定可以提升可扩展性,但也可能把错误隐藏到代码真正执行时才暴露。

发音 Pronunciation (IPA)

/ˈleɪt ˈbaɪndɪŋ/

词源 Etymology

late 意为“较晚的、在后面的”,binding 来自动词 bind(“绑定、捆绑、约束”),在计算机语境中引申为“把名称与具体实现/地址/类型等对应起来”。合起来 late binding 即“较晚发生的绑定”,强调“推迟到运行阶段再决定”。

相关词 Related Words

文学与著作 Notable Works

  • Design Patterns: Elements of Reusable Object-Oriented Software(Gamma 等,“四人帮”《设计模式》)
  • The C++ Programming Language(Bjarne Stroustrup,《C++ 程序设计语言》)
  • Structure and Interpretation of Computer Programs(Abelson & Sussman,《计算机程序的构造和解释》)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   830 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 23:29 · PVG 07:29 · LAX 15:29 · JFK 18:29
♥ Do have faith in what you're doing.