Is there a way for an object that is a field of another object to reference the enclosing object? Sort of like super references the parent object?
For example:
I want a method in TInnerObject to be able to call a method in TOuterObject without having to tell TInnerObject who TOuterObject is. It seems TInnerObject must know who it is a member of?
Thanks,
Jim
For example:
Type TOuterObject field innerobject : TInnerObject end type
I want a method in TInnerObject to be able to call a method in TOuterObject without having to tell TInnerObject who TOuterObject is. It seems TInnerObject must know who it is a member of?
Thanks,
Jim