Structure operations

From DavinciWiki
Revision as of 15:04, 25 October 2006 by Keith (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents: Description, Procedure

Description

Structures in davinci are polymorphus containers that can have any number of elements of any data type including other structures.

A good way to think about a structure is to imagine it as an empty box that swells to whatever size needed to hold the things you put in it. The box itself has no real properties other than that is contains things within it. You can put any davinci object into a structure; strings, numeric arrays, numbers, or even other structures all may be put in a structure for organizational purposes and are called 'elements' of that structure.

To accomplish work with data in a structure you must do something to the element corresponding to the data you want. Following the analogy, if you wanted to paste some pictures into a scrapbook that is in a cedar-chest you must reach into the cedar-chest to get at the scrapbook, you can't simply paste the pictures onto the outside of the cedar-chest. The cedar-chest has nothing directly to do with the pictures, it simply is a convenient storage device for the damn scrapbook.


Procedure


DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left


Personal tools