Hello,

How to do that which in the example below, the element 1 of "aVar[1]" is not
changed?

[CODE]
FUNCTION MAIN

local aVar1 := { 1, 2, 3 }
local aVar2

aVar2 := avar1

aVar2[1] := 5

? aVar1[1]   && Here return 5 . Why ?
? aVar1[2]
? aVar1[3]

RETURN NIL

[ENDCODE]

Best Regards,

Rossine.


-- 
View this message in context: 
http://www.nabble.com/Why-array-is-passed-by-reference--tp23745159p23745159.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to