| Type | Bug | Status | tested | Date | 28-May-2010 18:02 |
|---|---|---|---|---|---|
| Version | alpha 99 | Category | Error Handling | Submitted by | meijeru |
| Platform | All | Severity | minor | Priority | normal |
| Summary | Curious error message when trying to make a gob! from a bad spec |
|---|---|
| Description | See code below. The first example seems correct. The second, which should be the same, is the curious one, IMHO. |
| Example code |
>> make gob! [data: #[unset!]] ** Script error: cannot set data: field to unset! datatype >> make gob! compose [data: ()] ** Script error: expected set-word! not word! |
| Assigned to | n/a | Fixed in | alpha 104 | Last Update | 23-Sep-2010 10:04 |
|---|
| Comments | |
|---|---|
|
(0002378)
meijeru 28-May-2010 21:45 |
I now suspect this is a bug (or a feature ;-) of COMPOSE. See next ticket. |
|
(0002384)
BrianH 1-Jun-2010 23:39 |
This is not an error of COMPOSE. Let's factor out the COMPOSE.
>> compose [data: ()] == [data:] >> make gob! [data:] ** Script error: expected set-word! not pair! >> make gob! [data:] ** Script error: expected set-word! not string! Note that I got a different error than you did - I ran the test later in a session. When I ran the above code in a fresh console, I got your results, at least the first time. This implies that this is a bug in the error handling of the MAKE gob! spec dialect processor: It seems to be processing some random value in memory and generating the wrong error. Instead, it should explicitly check for this kind of dialect error. |
|
(0002472)
Carl 24-Aug-2010 23:44 |
BrianH, excellent deduction, as usual. The bug is in MAKE of GOB.
Fixed and defined now for these cases: >> make gob! [data:] ** Script error: data: needs a value >> make gob! [data: size: 10x10] ** Script error: data: needs a value >> make gob! append [data:] make unset! none ** Script error: data: needs a value |
| Date | User | Field | Action | Change |
|---|---|---|---|---|
| 23-Sep-2010 10:04 | BrianH | Status | Modified | built => tested |
| 24-Aug-2010 23:44 | carl | Fixedin | Modified | => alpha 104 |
| 24-Aug-2010 23:44 | carl | Status | Modified | reviewed => built |
| 24-Aug-2010 23:44 | carl | Comment : 0002472 | Added | - |
| 1-Jun-2010 23:42 | BrianH | Summary | Modified | Curious error message when trying to set gob! data to unset! => Curious error message when trying to make a gob! from a bad spec |
| 1-Jun-2010 23:41 | BrianH | Comment : 0002384 | Modified | - |
| 1-Jun-2010 23:39 | BrianH | Comment : 0002384 | Added | - |
| 1-Jun-2010 23:34 | BrianH | Status | Modified | submitted => reviewed |
| 28-May-2010 21:45 | meijeru | Comment : 0002378 | Added | - |
| 28-May-2010 18:02 | meijeru | Description | Modified | - |
| 28-May-2010 18:02 | meijeru | Code | Modified | - |
| 28-May-2010 18:02 | meijeru | Ticket | Added | - |