Getting Library Stacks into Memory

Dar Scott dsc at swcp.com
Sat Jul 9 16:14:35 EDT 2016


But LiveCode is not C.  In LiveCode an array is a value, not a special kind of variable.  

	put "abcd" into cup 1 of that egg carton in the box labeled "alphabetBlocks"

(I know, Dar sees the world funny.)

> On Jul 9, 2016, at 1:20 PM, Richard Gaskin <ambassador at fourthworld.com> wrote:
> 
> J. Landman Gay wrote:
> 
> > On 7/9/2016 1:39 PM, Richard Gaskin wrote:
> >> After all, how does one express an array in English? :)
> >
> > "Egg carton". Devin taught me that while brandishing a prop at one of
> > our teaching sessions.
> >
> >    put "abcd" into cup 1 of eggcarton "alphabetBlocks"
> 
> Conceptually the metaphor works well.  But in code I think we're all grateful for the conciseness of:
> 
>  put "absc" into alphabetBlocks[1]
> 
> Besides, as Mark Wieder suggested, if we were to pursue English-like patterns for that, once we introduce eggcarton objects we'd be obliged to add egg objects as well, and decide what a chicken object is.  And after that we'd have to explain to new users which gets initialized first, the chicken or the egg.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com                http://www.FourthWorld.com
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 





More information about the use-livecode mailing list