Type | Bug | Status | tested | Date | 8-May-2010 11:48 |
---|---|---|---|---|---|
Version | alpha 99 | Category | Native | Submitted by | meijeru |
Platform | All | Severity | crash | Priority | normal |
Summary | MAKEing a new native!, action! or op! value with a new body provokes crash on usage |
---|---|
Description | I learned from Front Line Blog article 315 ( http://www.rebol.net/cgi-bin/r3blog.r?view=0315 ) that one can make a new value of type any-function! from an existing value, supplying alternatively a new spec or a new body. R3 allows this latter usage also for built-in functions (natives, actions, operators), which do not have bodies which are R3 values. However, on usage, the new functions provoke a crash. |
Example code |
>> new-op: make := [* [value1 > value2]] >> type? :new-op == op! >> help new-op USAGE: value1 new-op value2 DESCRIPTION: Returns TRUE if the values are equal. NEW-OP is an op value. ARGUMENTS: value1 value2 >> 1 new-op 2 ** CRASH! |
Assigned to | n/a | Fixed in | alpha 108 | Last Update | 20-Oct-2010 03:44 |
---|
Comments | |
---|---|
(0002517)
Carl 21-Sep-2010 23:33 |
In A108, to avoid the crash, we will not allow body redefinition for anything other than functions and closures. |
Date | User | Field | Action | Change |
---|---|---|---|---|
20-Oct-2010 03:44 | BrianH | Status | Modified | built => tested |
21-Sep-2010 23:33 | carl | Comment : 0002517 | Added | - |
21-Sep-2010 23:33 | carl | Fixedin | Modified | => alpha 108 |
21-Sep-2010 23:33 | carl | Status | Modified | reviewed => built |
13-May-2010 15:41 | carl | Status | Modified | submitted => reviewed |
8-May-2010 18:30 | meijeru | Summary | Modified | MAKEing a new native!, action! or op! value provokes crash on usage => MAKEing a new native!, action! or op! value with a new body provokes crash on usage |
8-May-2010 18:29 | meijeru | Summary | Modified | MAKEing a new op! value provokes crash on usage => MAKEing a new native!, action! or op! value provokes crash on usage |
8-May-2010 18:29 | meijeru | Description | Modified | - |
8-May-2010 18:19 | meijeru | Description | Modified | - |
8-May-2010 18:17 | meijeru | Description | Modified | - |
8-May-2010 18:17 | meijeru | Code | Modified | - |
8-May-2010 11:48 | meijeru | Ticket | Added | - |