Hello Przemek,
Przemyslaw Czerpak-2 wrote: > > > After simple assignment by := both variables points to the same array > body. > >> aVar2[1] := 5 >> ? aVar1[1] && Here return 5 . Why ? > > because both vars uses the same array after above assignment. > If you do not like it and you want to make full array clone before > assigning array reference to variable then you should make it in the > same way as in Clipper and instead of: > aVar2 := aVar1 > you should use: > aVar2 := AClone( aVar1 ) > > Thanks for explanation, Rossine. -- View this message in context: http://www.nabble.com/Why-array-is-passed-by-reference--tp23745159p23746246.html Sent from the Harbour - Dev mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
