REBOL3 tracker
  0.9.12 beta
Ticket #0002242 User: anonymous

Project:

Previous Next
Short URL: http://issue.cc/r3/2242
rss
TypeBug Statuspending Date11-Aug-2015 02:51
Versionr3 master CategoryNative Submitted byfork
PlatformAll Severityminor Prioritynormal

Summary SWITCH/ALL consumes RETURN
Description The SWITCH native consumes returns, but only when /ALL is used. See example code.
Example code
foo: does [
    switch/all 10 [
        10 [print "Hello" return "Returning"]
        10 [print "World"]
    ]
    "Reached end"
]

print foo 

;; Output:

Hello
Reached end

;; Expected:

Hello
Returning

Assigned ton/a Fixed in- Last Update11-Aug-2015 06:34


Comments
(0004652)
abolka
11-Aug-2015 06:24

In the core-tests suite.
(0004653)
abolka
11-Aug-2015 06:34

Fix (for mainline) submitted:
https://github.com/rebol/rebol/pull/247

Date User Field Action Change
11-Aug-2015 06:34 abolka Status Modified reviewed => pending
11-Aug-2015 06:34 abolka Comment : 0004653 Added -
11-Aug-2015 06:24 abolka Comment : 0004652 Added -
11-Aug-2015 05:53 abolka Code Modified -
11-Aug-2015 05:53 abolka Status Modified submitted => reviewed
11-Aug-2015 02:51 Fork Ticket Added -