3 ms·
> Gamemaker Language var _xx = 100; mystruct = { a : 10, b : "Hello World", c : int64(5), d : _xx + 50, e : function(a, b) {
by krapp 4y ago
> Gamemaker Language
var _xx = 100;
mystruct =
{
a : 10,
b : "Hello World",
c : int64(5),
d : _xx + 50,
e : function(a, b)
{
return a + b;
},
f : [ 10, 20, 30, 40, 50 ],
g : image_index
};
It's been a long time since I've look at GML but it looks like it's turned into Javascript-lite. I do wish C had flexible array shorthand and something higher than function pointers to work with.