Delete an Array Entry?

Mark Wieder mwieder at ahsoftware.net
Fri Mar 2 01:48:02 EST 2007


Dave-

Thursday, March 1, 2007, 9:23:14 AM, you wrote:

> I agree this can be confusing. I haven't read the documentation
> recently, but I remember being caught out in the past when the docs
> implied that arrays could have "numerical" keys. I was under the  
> impresson that deleting a key from such an array would re-order the
> key numbering, but, of course, it didn't.

> I wouldn't like to get into a discussion about whether this is a  
> "proper" array. The term "associative array" is pretty widely used,
> and it's an extremely useful tool. It would be nice to have standard
> arrays too, I guess, but if we can only have one type, I'll vote for
> what we have now.

If I'm remembering this stuff correctly, the terms Hashtable and
Associative Array refer to the same thing. Which one you use depends
on how you were brought up. I suppose it may be simpler just to think
of them as unordered collections of key/value pairs...

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list