Data update

This commit is contained in:
Ingy döt Net 2024-10-16 18:07:41 -07:00
parent 81fd053722
commit 52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions

View file

@ -9,7 +9,7 @@ model # instance context
| Every value passed to the constructor sets the instance variable
| according to the order.
|^
fun makeNoise = void by block # method of Bear
fun makeNoise void by block # method of Bear
writeLine("Growl!")
end
end
@ -17,14 +17,14 @@ type Cat
model
text noise
new by text noise # an explicit constructor
me.noise = noise # we must use me to access instance variables
me.noise noise # we must use me to access instance variables
end
fun makeNoise = void by block
fun makeNoise void by block
writeLine(me.noise)
end
end
type Main
Bear bear = Bear("Bruno") # creating a new instance
writeLine("The bear is called " + bear.name)
Bear bear Bear("Bruno") # creating a new instance
writeLine("The bear is called ", bear.name)
bear.makeNoise()
Cat("Meow").makeNoise()