Array constants in LiveCode Builder

Richard Gaskin ambassador at fourthworld.com
Thu Jan 7 19:42:55 CET 2016


Peter TB Brett wrote:
 > Here's another piece of good news:
 >
 > Mark Waddingham and I spent a couple of hours yesterday morning
 > adding support for literal arrays to the LiveCode Builder Language.
 > In LiveCode 8.0.0 DP 13, you will be able to write:
 >
 >      variable tArray as Array
 >      put {"cats": 5, "dogs": 23} into tArray
 >
 > Or:
 >
 >      constant kColours is { "dirty purple": [80, 24, 60], \
 >                             "blue: [0, 0, 255] }
 >
 > Hopefully this should make working with arrays both easier and less
 > verbose.

Seems very useful.  Nice to have it in the extensibility subsystem, but 
any chance it'll find its way into the main language?

-- 
  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