...
This commit is contained in:
@@ -2,26 +2,17 @@ module "main"
|
||||
|
||||
extern "puts" func puts(text: cstring)
|
||||
|
||||
struct Name
|
||||
{
|
||||
first: cstring
|
||||
last: cstring
|
||||
}
|
||||
|
||||
struct Human
|
||||
{
|
||||
name: Name
|
||||
}
|
||||
|
||||
extern "main" func main(args: []cstring): i64
|
||||
{
|
||||
let x: Human = {
|
||||
name = {
|
||||
first = "oliver"
|
||||
last = "stene"
|
||||
}
|
||||
let x = [2]cstring
|
||||
|
||||
x[0] = "test1"
|
||||
x[1] = "test2"
|
||||
|
||||
for u in x
|
||||
{
|
||||
puts(u)
|
||||
}
|
||||
|
||||
puts(x.name.last)
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user