forked from solstice/solstice
Use new to create an object from a struct
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
struct dingus {
|
||||
x = 5
|
||||
y = "dingus"
|
||||
}
|
||||
|
||||
e = new dingus
|
||||
puts e
|
||||
puts dingus
|
||||
|
||||
Reference in New Issue
Block a user