REBOL3 tracker
  0.9.12 beta
Ticket #0002049 User: anonymous

Project:



rss
TypeBug Statusbuilt Date15-Aug-2013 17:26
Versionr3 master CategoryDatatype Submitted byLadislav
PlatformAll Severitymajor Prioritynormal

Summary Object cloning ignores closures
Description As the example demonstrates, the interpreter ignores closures when cloning objects.
Example code
; when cloning an object, functions are cloned:
o: make object! [n: 'o f: func [] [n]]
o/f ; == o
p: make o [n: 'p]
p/f ; == p

; while closures are ignored:
o: make object! [n: 'o f: closure [] [n]]
o/f ; == o
p: make o [n: 'p]
p/f ; == o

Assigned ton/a Fixed in- Last Update11-Mar-2014 19:18


Comments
(0003930)
Ladislav
16-Aug-2013 13:39

In the core-tests suite.
(0003944)
Ladislav
19-Aug-2013 21:48

Fixed by https://github.com/rebol/rebol/pull/132

Date User Field Action Change
11-Mar-2014 19:18 Ladislav Status Modified pending => built
19-Aug-2013 21:48 Ladislav Code Modified -
19-Aug-2013 21:48 Ladislav Status Modified submitted => pending
19-Aug-2013 21:48 Ladislav Comment : 0003944 Added -
16-Aug-2013 13:39 Ladislav Comment : 0003930 Added -
15-Aug-2013 17:26 Ladislav Ticket Added -