| Type | Bug | Status | tested | Date | 30-Jul-2010 09:43 |
|---|---|---|---|---|---|
| Version | alpha 99 | Category | Datatype | Submitted by | meijeru |
| Platform | All | Severity | minor | Priority | normal |
| Summary | Shortening a tuple does not "forget" the discarded components |
|---|---|
| Description |
One can shorten a tuple by setting a component to NONE. The length of the new value is shown correctly. However, when adding a longer tuple to it, the discarded components show up. A bug or a feature? |
| Example code |
>> t: 1.2.3.4 >> t/4: none >> length? t ; == 3 >> t ; == 1.2.3 >> t + 0.0.0.0 == 1.2.3.4 >> 1.2.3 + 0.0.0.0 == 1.2.3.0 |
| Assigned to | n/a | Fixed in | alpha 104 | Last Update | 23-Sep-2010 10:02 |
|---|
| Comments | |
|---|---|
|
(0002460)
meijeru 30-Jul-2010 09:48 |
When inspecting the REBOL values as stored in the machine (easy to do with an extension) I have often remarked that unused words/bytes are not cleared. As long as they are not retrieved by the implementation, this is of course OK. But this issue shows the risks... |
|
(0002461)
BrianH 31-Jul-2010 23:24 |
Definitely a bug, as your example code shows in the fourth command. |
| Date | User | Field | Action | Change |
|---|---|---|---|---|
| 23-Sep-2010 10:02 | BrianH | Status | Modified | built => tested |
| 24-Aug-2010 23:25 | carl | Fixedin | Modified | alpha 103 => alpha 104 |
| 24-Aug-2010 01:09 | carl | Fixedin | Modified | => alpha 103 |
| 24-Aug-2010 01:09 | carl | Status | Modified | reviewed => built |
| 31-Jul-2010 23:24 | BrianH | Comment : 0002461 | Added | - |
| 31-Jul-2010 23:23 | BrianH | Status | Modified | submitted => reviewed |
| 31-Jul-2010 23:23 | BrianH | Type | Modified | Issue => Bug |
| 30-Jul-2010 09:49 | meijeru | Description | Modified | - |
| 30-Jul-2010 09:49 | meijeru | Code | Modified | - |
| 30-Jul-2010 09:48 | meijeru | Comment : 0002460 | Added | - |
| 30-Jul-2010 09:43 | meijeru | Ticket | Added | - |