Type | Bug | Status | reviewed | Date | 13-Aug-2015 17:55 |
---|---|---|---|---|---|
Version | r3 master | Category | Unspecified | Submitted by | fork |
Platform | All | Severity | minor | Priority | normal |
Summary | Path evaluation does not process THROWN values as THROWN |
---|---|
Description |
When a THROW/BREAK/CONTINUE happens inside paren code in a path, it attempts to use the thrown error as the selection key. It should probably interrupt the evaluation such that the thrown value "bubbles up" out of the path. Hence FOO/(THROW "SOMETHING" 'BAR) would in effect do the same thing as SELECT FOO (THROW "SOMETHING" 'BAR) |
Example code |
>> foo: object [bar: 10] == make object! [ bar: 10 ] >> foo/('bar) == 10 >> foo/(throw "something" 'bar) ** Script error: cannot access (throw "something" 'bar) in path foo/(throw "something" 'bar) ;-- expected "unhandled throw" |
Assigned to | n/a | Fixed in | - | Last Update | 14-Sep-2015 09:22 |
---|
Date | User | Field | Action | Change |
---|---|---|---|---|
14-Sep-2015 09:22 | abolka | Status | Modified | submitted => reviewed |
13-Aug-2015 23:08 | Fork | Code | Modified | - |
13-Aug-2015 21:25 | Fork | Description | Modified | - |
13-Aug-2015 21:25 | Fork | Code | Modified | - |
13-Aug-2015 17:55 | Fork | Ticket | Added | - |