REBOL3 tracker
  0.9.12 beta
Ticket #0000447 User: anonymous

Project:



rss
TypeBug Statustested Date5-May-2008 14:34
Versionalpha 31 Categoryn/a Submitted byBrianH
PlatformAll Severityminor Prioritynormal

Summary Closures bind 'self
Description Closures bind the 'self word, starting in 2.100.10. This makes it awkward to use closures or USE inside object or module specs, where 'self is used to access words in the outer context overridden by local words. Functions don't have this problem.

>> do closure [x] [x: 1 probe self] 1
make object! [
x: 1
]
== object!
Example code
a: object [b: 1 c: closure [x] [x: 1 probe self]] a/c 2

Assigned ton/a Fixed inalpha 50 Last Update30-Jul-2013 07:53


Comments
(0003902)
Ladislav
30-Jul-2013 07:53

In the core-tests suite.

Date User Field Action Change
30-Jul-2013 07:53 Ladislav Comment : 0003902 Added -
29-Apr-2009 20:38 BrianH Status Modified built => tested
29-Apr-2009 15:10 carl Code Modified -
29-Apr-2009 15:10 carl Fixedin Modified => alpha 50
29-Apr-2009 15:10 carl Status Modified reviewed => built
20-Jan-2009 02:45 BrianH Version Modified => alpha 31
20-Jan-2009 02:45 BrianH Severity Modified trivial => minor
20-Jan-2009 02:45 BrianH Status Modified submitted => reviewed
20-Jan-2009 02:45 BrianH Priority Modified none => normal
2-Dec-2008 18:50 Admin Ticket Added -