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