Arrays and empty? Is this a bug?
Mark Wieder
mwieder at ahsoftware.net
Mon Feb 4 17:33:09 EST 2008
Chipp-
Ah. The joys of associative arrays.
Technically this is proper behavior.
tMyArray is empty.
tMyArray[1] is not.
If you put "yellow" into tMyArray then it is not longer empty.
And it is also no longer an array.
Putting "red" back into tMyArray[1] again makes tMyArray into an array and
makes tMyArray empty.
And as of rev 2.9.0-dp3 you can now "put tMyArray is an array" as a shortcut
to
"put the keys of tMyArray is empty"
--
Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list