hades-lang icon indicating copy to clipboard operation
hades-lang copied to clipboard

Global struct initialization

Open dhruvrajvanshi opened this issue 7 months ago • 0 comments

Allow initialization of structs at global const level if all arguments are also constants

struct SomeVTable {
   foo: fn() -> void
}

fn int_foo() -> void {}

const IntVTable = SomeVTable(int_foo)

dhruvrajvanshi avatar Jun 27 '24 14:06 dhruvrajvanshi