Language (Class Keyword)
Usage
To specify the default language used to implement methods in this class, use the following syntax:
Class MyApp.MyClass [ Language = language ]
{ //class members}
Where language is one of the following:
-
objectscript — ObjectScript (the default)
-
tsql — Transact-SQL
Or omit this keyword. In this case, InterSystems IRIS uses the default language (ObjectScript).
Details
This keyword specifies the default language used to implement methods for this class. Individual methods can override this value using the method’s Language keyword.
Effect on Subclasses
This keyword is not inherited.
Default
If you omit this keyword, the language is ObjectScript.
You cannot specify Language = ispl or Language = python at the class level; you can only use these values for methods.
The default language for methods of a sharded class cannot be any language other than ObjectScript.