Просмотр исходного кода

Plan to make SELSL prototype-based, similar to SELF, but with actor support.

Beoran 2 лет назад
Родитель
Сommit
e2714fc46e
1 измененных файлов с 14 добавлено и 1 удалено
  1. 14 1
      README

+ 14 - 1
README

@@ -29,7 +29,18 @@ myself
 i
 i
 
 
 
 
-In SELSL, everything is an object, and there are no stand alone variables.
+SELSL is object oriented but not class based. In stead it is prototype
+based much like the SELF language. In SELSL, everything is an object.
+Objects have slots that can contain other values. There are basic objects
+which evaluate to themselves, and excutable objects which perform
+some computation to produce their result.
+
+An object also has an effect on computation. Normal objects have no effect,
+but a Return causes the block to end execution early. A Throw
+will keep on unless if it is stopped with a Catch.
+
+Variables, and also arguments are simply slots of the current activation
+record of an executable object.  There are no stand alone variables.
 Eveything exists in something else, except for the top level "world".
 Eveything exists in something else, except for the top level "world".
 There is also a "me" object which represents the the current actor
 There is also a "me" object which represents the the current actor
 that is operating on the state of the world.
 that is operating on the state of the world.
@@ -65,6 +76,8 @@ Create a red door as a door.
 
 
 open red door
 open red door
 
 
+cast cure light at smart bob
+
 
 
 
 
 (This is
 (This is