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

Use a temporary reg in repeat for each syntax#4596

Merged
peter-b merged 2 commits intolivecode:developfrom
livecodefraser:lcb-repeat_temp_reg
Oct 4, 2016
Merged

Use a temporary reg in repeat for each syntax#4596
peter-b merged 2 commits intolivecode:developfrom
livecodefraser:lcb-repeat_temp_reg

Conversation

@livecodefraser
Copy link
Copy Markdown
Contributor

This avoids type errors when passing data into and out of the iteration methods.

As a side effect, one of the key methods inside the compiler became more complex, pushing it over the edge in terms of memory use when compiling the iconsvg library. The library has been re-arranged slightly to stave off the problem for a little while. (A proper fix is needed but is outside the scope of this change).

The length of the handler is giving the compiler some problems so
this works around the issue for now. A more fundamental fix is needed
though.
This avoids problems with stale or unpredicable data being in the
register and being passed to iterators as the wrong type.
@livecodefraser livecodefraser added this to the 9.0.0-dp-1 milestone Sep 30, 2016
@livecodefraser
Copy link
Copy Markdown
Contributor Author

@livecode-vulcan reviewed by @peter-b okay 2893b80

@livecode-vulcan
Copy link
Copy Markdown
Contributor

💙 review by @peter-b ok 2893b80

livecode-vulcan added a commit that referenced this pull request Sep 30, 2016
Use a temporary reg in `repeat for each` syntax

This avoids type errors when passing data into and out of the iteration methods.

As a side effect, one of the key methods inside the compiler became more complex, pushing it over the edge in terms of memory use when compiling the iconsvg library. The library has been re-arranged slightly to stave off the problem for a little while. (A proper fix is needed but is outside the scope of this change).
@livecode-vulcan
Copy link
Copy Markdown
Contributor

😎 test success 2893b80

@peter-b peter-b merged commit 4abc4ac into livecode:develop Oct 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants