Added in sizeof intrinsic + piping for more in the future. Inbetween commit before removing sizeof function

This commit is contained in:
Nathan Braswell
2016-04-28 18:47:53 -04:00
parent b52d38f648
commit 2051f54b55
7 changed files with 98 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
1
4
4
8
8

View File

@@ -0,0 +1,12 @@
import simple_print:*
fun main(): int {
println(#sizeof<char>)
println(#sizeof<int>)
println(#sizeof<float>)
println(#sizeof<double>)
println(#sizeof<*void>)
return 0
}