mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-14 23:21:25 -07:00
31 lines
363 B
Odin
31 lines
363 B
Odin
// Demo 001
|
|
#load "basic.odin"
|
|
#load "game.odin"
|
|
|
|
main :: proc() {
|
|
|
|
Thing :: type struct {
|
|
using x: struct { a, b: int }
|
|
}
|
|
|
|
{
|
|
using t := new(Thing)
|
|
defer delete(t)
|
|
a = 321
|
|
print_int(a); nl()
|
|
}
|
|
|
|
// {
|
|
// using t := new(Thing)
|
|
// defer delete(t)
|
|
// a = 1337
|
|
// print_int(a); nl()
|
|
// }
|
|
|
|
// run_game()
|
|
}
|
|
|
|
|
|
nl :: proc() #inline { print_nl() }
|
|
|