HCoop
/
jackhill
/
mal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Implement step A
[jackhill/mal.git]
/
chuck
/
types
/
mal
/
MalNil.ck
1
public class MalNil extends MalObject
2
{
3
"nil" => type;
4
5
fun void init()
6
{
7
Int.create(-1) @=> object;
8
}
9
10
fun static MalNil create()
11
{
12
MalNil m;
13
m.init();
14
return m;
15
}
16
17
fun MalObject clone()
18
{
19
MalNil value;
20
21
this.type => value.type;
22
this.object @=> value.object;
23
this.objects @=> value.objects;
24
this.meta @=> value.meta;
25
26
return value;
27
}
28
}