上述范例中所定义的 widgetColl 集合并不是「强型别 (Strong Typed),这表示您可以在其中加入任何型别的物件,而不仅限于 widget 物件。这可能会造成型别安全 (Type Safety) 的问题。
基于1个网页-相关网页
It is built on an extensible, strong, typed model called a topology model.
它是建立在一个可扩展的,强大类型模型上的,称作拓扑模型。
Statically typed languages can have strong or weak typing; dynamically typed systems are usually, though not exclusively, strongly typed.
静态类型的语言既可以有强类型,也可以有弱类型;而动态类型系统通常是强类型的,但也不完全是。
The strong typing in XPath 2.0 ensures that a document created by an XSLT style sheet can be validated against a strongly-typed XML schema.
XPath 2.0中的强类型确保由xslt样式表创建的文档能够依据强类型的XML模式进行验证。
应用推荐