Improved type system
This commit is contained in:
examples
lib
log
mem
sys
fs_linux.qio_linux.qio_mac.qio_windows.qmem_linux.qmem_mac.qmem_windows.qnet_linux.qnet_mac.qproc_linux.qproc_mac.q
thread
src
core
errors
types
tests
@ -6,10 +6,10 @@ number(x Int) {
|
||||
buffer := mem.alloc(length)
|
||||
address, count := itoa(x, buffer, length)
|
||||
sys.write(1, address, count)
|
||||
mem.free(buffer, length)
|
||||
mem.free(buffer)
|
||||
}
|
||||
|
||||
itoa(x Int, buffer Pointer, length Int) -> (Pointer, Int) {
|
||||
itoa(x Int, buffer *Any, length Int) -> (*Any, Int) {
|
||||
end := buffer + length
|
||||
tmp := end
|
||||
digit := 0
|
||||
|
Reference in New Issue
Block a user