langs a-z

This commit is contained in:
Ingy döt Net 2013-04-10 22:43:41 -07:00
parent db842d013d
commit d066446780
11389 changed files with 98361 additions and 1020 deletions

View file

@ -0,0 +1,24 @@
declare
class Something
feat
name %% immutable, public attribute (called a "feature")
attr
count %% mutable, private attribute
%% public method which is used as an initializer
meth init(N)
self.name = N
count := 0
end
%% public method
meth increase
count := @count + 1
end
end
in
%% create an instance
Object = {New Something init("object")}
%% call a method
{Object increase}