User Tools

Site Tools


at:urbiflock

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
at:urbiflock [2008/09/04 16:21] elisagat:urbiflock [2008/09/04 16:23] elisag
Line 43: Line 43:
 <code> <code>
 def flockrTemplate := template: { def flockrTemplate := template: {
-def name := *; // wildcard, can be anything +  def name := *; // wildcard, can be anything 
-def age := constraint: { _ < 25 }; // must be younger than 25 +  def age := constraint: { _ < 25 }; // must be younger than 25 
-def address := template: { +  def address := template: { 
-def street := *; // any street, but street name must be filled in +    def street := *; //any street,but street name must be filled 
-def city := "Brussel"; // city must equal this string +    def city := "Brussel"; // city must equal this string 
-// address may have arbitrary other data +  }; 
-}; +  def greet(); // person must have a greet method
-def greet(); // person must have a greet method+
 } taggedAs: [ Flockr ]; // object must be tagged as a Flockr } taggedAs: [ Flockr ]; // object must be tagged as a Flockr
 </code> </code>
at/urbiflock.txt · Last modified: 2015/02/04 19:06 by elisag