Add casting as a language feature. Have not removed the function yet as we need an inbetween version for the bootstrap

This commit is contained in:
Nathan Braswell
2016-04-18 22:56:29 -04:00
parent d5b930739f
commit cf46fb13af
7 changed files with 71 additions and 9 deletions

View File

@@ -6,8 +6,10 @@ fun main():int {
println(to_int('B'))
var a = 1337
var b = &a
var c = cast_ptr<*int, *char>(b)
var b = &a;
var c = (b) cast *char
/*var c = cast_ptr<*int, *char>(b)*/
//var d = c + 1
//var e = 1 + c
println(to_int(*(c+0)))