asoffer / Icarus

An experimental general-purpose programming language
Apache License 2.0
9 stars 2 forks source link

Emit destructors correctly for block nodes #69

Closed asoffer closed 2 years ago

asoffer commented 3 years ago

Ethos is especially difficult when dealing with labelled yields (e.g., #.my_label << 17) which may jump over an arbitrary number of block exits and need to destroy everything in-between.

perimosocordiae commented 3 years ago

Is this the same issue as gh-61?

asoffer commented 3 years ago

That one is only about scope state. This is about objects declared in a block.

asoffer commented 2 years ago

With the changes made for #81 this should be fixed now.