Skip to content

Instantly share code, notes, and snippets.

@devyn
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devyn/c36ba0c2d1861f9785b1 to your computer and use it in GitHub Desktop.
Save devyn/c36ba0c2d1861f9785b1 to your computer and use it in GitHub Desktop.
infrastructure execution stage[]
[infrastructure affix[] [locals]] [infrastructure empty[]];
infrastructure execution stage[]
[infrastructure set[]
[infrastructure get[] [locals] [infrastructure length[] [locals]]]
1] self.portrait;
infrastructure execution stage[]
[infrastructure set[]
[infrastructure get[] [locals] [infrastructure length[] [locals]]]
2] [infrastructure execution branch[] []];
implementation void[]
--- "This doesn't work because the caller of `stage` was given as *this*
Execution, and thus that partially-applied `stage` remains on the
stack after we branch ourselves. `stage` then attempts to return
to us, when really we want it to return to our new branch.";
self.portrait [infrastructure execution branch[] [self.portrait]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment