28 lines
319 B
Plaintext
28 lines
319 B
Plaintext
template<T> struct Box
|
|
{
|
|
value: T
|
|
}
|
|
|
|
func main(args: []cstring): i64
|
|
{
|
|
let box = alloc Box<cstring>
|
|
{
|
|
value = "bob"
|
|
}
|
|
|
|
let box2 = alloc Box<cstring>
|
|
{
|
|
value = "bob"
|
|
}
|
|
|
|
let box3 = alloc Box<u8>
|
|
{
|
|
value = 23
|
|
}
|
|
|
|
|
|
c::puts(box.value)
|
|
|
|
return 0
|
|
}
|