Skip to main content
Previous section   Next section

Language

Specifies the default language used to implement methods for this class.

Usage

To specify the default language used to implement methods in this class, use the following syntax:

Class MyApp.MyClass [ Language = language ] 
{ //class members}
Copy code to clipboard

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.

Note:

You cannot specify Language = ispl at the class level; you can only use this value for methods.

Note:

The default language for methods of a sharded class cannot be any language other than ObjectScript.

See Also