Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Are immutable properties supported in ObjectScript classes?

Question
Ming Zhou · Jan 28, 2022

Are immutable properties supported in ObjectScript classes?

Can we make any property immutable once it value is set? For example, I may have a property called RecordCreatedTime to track when the record is created in IRIS, and once it is set, I don't want anyone to modify the value. 

#InterSystems IRIS
Product version: IRIS 2021.1

Source URL:https://community.intersystems.com/post/are-immutable-properties-supported-objectscript-classes