Re: [NTLK] Soup Clues

From: matthiasm <mm_at_matthiasm.com>
Date: Tue Jun 17 2008 - 06:06:42 EDT

On 17.06.2008, at 08:32, Andrei Chichak wrote:

Great explanation.

> A slot can equally hold a function or a frame.
>

Just to make this clear, because it is what makes the concept of
NewtonScript so fantastic.

A frame can contain any kind of data. It can contain more frames,
arrays, integers, strings, floats, graphics, sounds, and functions
(which to NS is just another piece of data). A frame can contain a
whole tree of information. Actually, the whole Newton system (as
Andrei already explained), is one single frame, called the root frame.

You can look at the root frame and all descedants by connecting via
NTK/DyneTK and Inspector and typing

> print(GetRoot());

You can then goo deeper into that tree by separating the elemnets with
a full stop:

> print(GetRoot().someFrame);

Or square brackets:

> print(GetRoot().someArray[2]);

Soups are collection of frames, but with the additional functionality
of a database, making it easy to search an sort by various aspects of
its entries. A unione soup is the combination of multiple soups,
appearing as a single soup to the programmer. This is great if you
have an address database that is partially in the newton core storage
and to some part on a PCMCIA card.

Matthias

----
http://robowerk.com/
==================================================================== 
The NewtonTalk Mailing List - http://www.newtontalk.net/
The Official Newton FAQ     - http://www.splorp.com/newton/faq/
The Newton Glossary         - http://www.splorp.com/newton/glossary/
WikiWikiNewt                - http://tools.unna.org/wikiwikinewt/
====================================================================
Received on Tue Jun 17 06:37:59 2008

This archive was generated by hypermail 2.1.8 : Tue Jun 17 2008 - 09:30:00 EDT