23 lines
268 B
Plaintext
23 lines
268 B
Plaintext
namespace main
|
|
|
|
struct Human {
|
|
age: ^u64
|
|
}
|
|
|
|
export func main(args: []^string): i64 {
|
|
let age: u64 = 23
|
|
|
|
let me = alloc Human {
|
|
age = &age
|
|
}
|
|
|
|
me.age^ = 24.5
|
|
|
|
test(me.age^)
|
|
|
|
return 0
|
|
}
|
|
|
|
func test(me: u64) {
|
|
c::printf("%d\n", me)
|
|
} |