Changes between Version 1 and Version 2 of Creating Closures with NQP-rx
- Timestamp:
- 03/16/10 03:23:27 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Creating Closures with NQP-rx
v1 v2 1 = Creating Closures with NQP-rx = 2 1 3 The following code works as of Parrot 2.1 to create and store closures from NQP-rx. If you need this, please note that the `newclosure` op is necessary to clone the enclosed context. Also, you need to re-enter the containing lexical scope to reset the lex vars you want unshared. Otherwise, as shown (see `shared` vs. `not_shared`) they won't be shared. 2 4
