docs.intersystems.com
InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference

Class Definition Reference
LegacyInstanceContext
Previous section           Next section
InterSystems: The power behind what matters   
Search:  


Specifies whether instance methods in this class can use the now-obsolete %this variable.
Usage
To enable instance methods in the class to use %this, use the following syntax:
Class MyApp.MyClass [ LegacyInstanceContext ]  { //class members }
Otherwise, omit this keyword or place the word Not immediately before the keyword.
Details
If this keyword is true, instance methods in this class can use the %this variable, which is now obsolete (replaced by $this). If this keyword is false, instance methods cannot refer to %this.
Effect on Subclasses
This keyword is not inherited.
Default
If you omit this keyword, instance methods cannot refer to %this.
See Also


Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-08-19 05:43:38