Skip to content

[spec] Fix block values#609

Merged
rossberg merged 1 commit intomasterfrom
spec.blockresult
Nov 30, 2017
Merged

[spec] Fix block values#609
rossberg merged 1 commit intomasterfrom
spec.blockresult

Conversation

@rossberg
Copy link
Member

Fix #608.

When the end of a block is reached without a jump or trap aborting it, then the following steps are performed.

1. Let :math:`n` be the arity of :math:`L`.
1. Let :math:`m` be the number of values on the top of the stack.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know what you mean by "values on top of the stack", but is that mentioned anywhere in the spec?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The runtime section defines the stack. Although never defined explicitly, the spec mentions "the top of the stack" in various places. Do you think it might be too unclear?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's probably fine when it's just a few values. This case is perhaps a little less clear since you're only counting up from the label. That said, the formula below makes it explicit.

@rossberg rossberg merged commit 5130369 into master Nov 30, 2017
@rossberg rossberg deleted the spec.blockresult branch November 30, 2017 18:32
rossberg added a commit that referenced this pull request Nov 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants