Skip to content

Object creation notes

relsqui edited this page Jul 6, 2012 · 2 revisions

create <optional:type> name

  • type defaults to a generic Object if unspecified
  • later: name becomes optional, defaulting to the object class's default name
  • if class has no default, drop into create mode

for example:

  • create item a widget (creates an item called "a widget")
  • create a widget (also creates an item called "a widget")
  • create food.Fruit (creates a Fruit item using the default name "an apple")
  • create food.Fruit a ripe yellow banana (creates a Fruit item called "a ripe yellow banana")

we'll need a token to match an object type; I'm not sure how to go about this

we'll also eventually need an object creation mode that lets us set variables on objects in a friendly way

Clone this wiki locally