awestlake87/helix

ctors and dtors

Opened this issue · 0 comments

struct Object
    *int @a
    oper construct(int a):
        @a: alloc<int>()
        *@a = a

    oper destruct():
        free(@a)
        @a = nil