Implemented structs
This commit is contained in:
11
examples/point/point.q
Normal file
11
examples/point/point.q
Normal file
@ -0,0 +1,11 @@
|
||||
struct Point {
|
||||
x Int
|
||||
y Int
|
||||
}
|
||||
|
||||
main() {
|
||||
p := new(Point)
|
||||
p.x = 4
|
||||
p.y = 2
|
||||
delete(p)
|
||||
}
|
Reference in New Issue
Block a user