use "" as an array key

Richard Gaskin ambassador at fourthworld.com
Thu Sep 22 14:03:24 EDT 2016


Matt Maier wrote:

 > Something I discovered while debugging is that "" is being accepted
 > as an array key.
 >
 > It seems like it shouldn't be possible to use the absence of a string
 > as an array key. Is it supposed to work that way? I'm using 8.0.1 on
 > Windows.

Works that way on Ubuntu 14.04 and 16.04 as well. and AFAIK at least as 
far back as v6.7.

Not sure if it's a bug or a feature we just need to be very careful 
about, but you and I seem to be the only two people who've ever noticed 
that.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list