Tutorial :Type checking on Caché Objects


What is the point of type definition on method parameters on Caché Object (from Intersystems) since after it's pre-compiled to the .int format, it removes any typing information, thus making no difference at all?


Those types aren't used/checked internal to Cache code, but they are used when you expose your classes via XML, SQL, etc.

One would hope that in a future version Intersystems would start doing some compile-time type checking, but that may be too much to ask.


If you're writing ANSI M code, you shouldn't have types at all. My guess is that this is specific to Intersystems code.


There aren't really datatypes in Cache, so there is no type checking.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »