Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Should memory.init/drop of active segments be a validation error? #107

Closed
sbc100 opened this issue Jul 19, 2019 · 2 comments
Closed

Should memory.init/drop of active segments be a validation error? #107

sbc100 opened this issue Jul 19, 2019 · 2 comments

Comments

@sbc100
Copy link
Member

sbc100 commented Jul 19, 2019

Presumably they could be validation errors, but the DataCount section doesn't have enough information?

Was a bitfield considered rather than a single number for the DataCount section?

@binji
Copy link
Member

binji commented Jul 19, 2019

There was a long discussion about this here: #27, starting from this comment.

Luke explains the rationale in a following comment: "although taking into account what @conrad-watt's pov, the "active/passive" distinction goes away at runtime; there are simply "has the segment already been dropped", with active segments having been desugared into table.init;table.drop expressions executed before the start function"

@sbc100
Copy link
Member Author

sbc100 commented Jul 19, 2019

ok sgtm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants