It looks to me as if a default value defined in a class type is set when a class object is declared
but is NOT set when a NEW instance is created. Is this correct behaviour?
Consider the following:
DClsType CLASS,TYPE
Value BYTE(1)
END
MyClsType CLASS,TYPE
DRef &DClsType
END
MyCls CLASS(MyClsType)
Init PROCEDURE
END
If a DefCls object is declared using:
DefCls CLASS(DClsType) --- DefCls.Value = 1
If an instance of DCls is created using:
MyCls.DRef &= NEW(DClsType) -- MyCls.DCls.Value = 0
(My apologies if the code is not well formatted.)