When maintaining arrays in xBase++ it is possible to assign more than one
variable as a pointer to the array content.
Also it is possible to copy entire content under another pointer variable
with Aclone() function.
But how to achieve those both functionalities with class variable ?
Can I preserve the original object contents just with asigning it's accesing
variable (object var) to another variable ?
LOCAL oVar1 := MyClass():New()
LOCAL oVar2
oVar1:cPropVar := "John"
oVar2 := oVar1
oVar1:cPropVar .= "Elton"
? oVar2:cPropVar ( I would like it to be John, but wouldn't it be Elton
with such approach ? )
Best regards
Toma