Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Classes/Slate/classes.slate
Normal file
12
Task/Classes/Slate/classes.slate
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
prototypes define: #MyPrototype &parents: {Cloneable} &slots: #(instanceVar).
|
||||
MyPrototype traits addSlot: #classVar.
|
||||
|
||||
x@(MyPrototype traits) new
|
||||
[
|
||||
x clone `>> [instanceVar: 0. ]
|
||||
].
|
||||
|
||||
x@(MyPrototype traits) someMethod
|
||||
[
|
||||
x instanceVar = 1 /\ (x classVar = 3)
|
||||
].
|
||||
Loading…
Add table
Add a link
Reference in a new issue