Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Caché Object(来自 Intersystems)上的方法参数的类型定义有什么意义,因为在它被预编译为 .int 格式之后,它会删除任何类型信息,因此根本没有区别?
这些类型不会在缓存代码内部使用/检查,但是当您通过 XML、SQL 等公开您的类时会使用它们。
人们希望在未来的版本中,Intersystems 将开始进行一些编译时类型检查,但这可能要求太多了。
Cache 中没有真正的数据类型,因此没有类型检查。
如果您正在编写 ANSI M 代码,则根本不应该有类型。我的猜测是这是特定于 Intersystems 代码的。