Improved type system
This commit is contained in:
parent
c0ffddaba8
commit
2e3857622a
30 changed files with 132 additions and 85 deletions
|
@ -10,5 +10,5 @@ main() {
|
|||
address[3] = 'l'
|
||||
address[4] = 'o'
|
||||
sys.write(1, address, length)
|
||||
mem.free(address, length)
|
||||
mem.free(address)
|
||||
}
|
|
@ -9,7 +9,7 @@ main() {
|
|||
n := sys.read(0, address, length)
|
||||
|
||||
if n <= 0 {
|
||||
mem.free(address, length)
|
||||
mem.free(address)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -30,5 +30,5 @@ print(p *Point) {
|
|||
out[6] = '0' + p.y
|
||||
out[7] = '\n'
|
||||
sys.write(1, out, 8)
|
||||
mem.free(out, 8)
|
||||
mem.free(out)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue