| Type | Bug | Status | pending | Date | 11-Aug-2015 02:51 |
|---|---|---|---|---|---|
| Version | r3 master | Category | Native | Submitted by | fork |
| Platform | All | Severity | minor | Priority | normal |
| 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 to | n/a | Fixed in | - | Last Update | 11-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 | - |