Type | Bug | Status | tested | Date | 15-Jul-2009 10:38 |
---|---|---|---|---|---|
Version | alpha 72 | Category | Datatype | Submitted by | meijeru |
Platform | All | Severity | minor | Priority | normal |
Summary | TO-TUPLE on a hex issue, or set-path assignment of a tuple, allows overlong tuples |
---|---|
Description | See code. There is a test missing. Question: does one ignore the excess digits, or does one declare an error (in other comparable cases an error is declared). |
Example code |
>> t: to-tuple #0102030405060708090A0B == 1.2.3.4.5.6.7.8.9.10.11 >> length? t == 11 >> t/11 == 11 >> t: 1.2.3 == 1.2.3 >> t/11: 11 >> t == 1.2.3.0.0.0.0.0.0.0.11 |
Assigned to | n/a | Fixed in | alpha 87 | Last Update | 8-Oct-2009 01:45 |
---|
Comments | |
---|---|
(0001373)
meijeru 15-Jul-2009 12:40 |
On further inspection, it turns out one can extend any tuple with an 11th element. So there is a more general test that is wrong. Added code to show this. |
(0001377)
BrianH 15-Jul-2009 18:05 |
Either these need to be blocked as well, or tuples could be allowed to go up to 11. 12 doesn't work though. |
(0001503)
Carl 18-Aug-2009 22:39 |
This is actually correct. Tuples can go to 11 (but I did not want advertise that fact until we were sure that we really needed them that long. It's difficult to shorten them later if we find that we need the extra bits for something.)
Also, tuples have an auto-extending feature. That is why t/11: 11 works. |
(0001632)
BrianH 8-Oct-2009 01:45 |
As of alpha 87, t/11: 11 no longer works. |
Date | User | Field | Action | Change |
---|---|---|---|---|
8-Oct-2009 01:45 | BrianH | Comment : 0001632 | Added | - |
8-Oct-2009 01:44 | BrianH | Status | Modified | dismissed => tested |
8-Oct-2009 01:44 | BrianH | Fixedin | Modified | => alpha 87 |
18-Aug-2009 22:40 | carl | Comment : 0001503 | Modified | - |
18-Aug-2009 22:39 | carl | Comment : 0001503 | Added | - |
18-Aug-2009 22:37 | carl | Status | Modified | waiting => dismissed |
18-Aug-2009 22:37 | carl | Comment : 0001395 | Removed | - |
21-Jul-2009 19:51 | carl | Status | Modified | dismissed => waiting |
21-Jul-2009 19:51 | carl | Comment : 0001395 | Modified | - |
21-Jul-2009 19:47 | carl | Comment : 0001395 | Added | - |
21-Jul-2009 19:46 | carl | Status | Modified | reviewed => dismissed |
21-Jul-2009 19:46 | carl | Summary | Modified | TO-TUPLE on a hex issue, or set-path assignement of a tuple, allows overlong tuples => TO-TUPLE on a hex issue, or set-path assignment of a tuple, allows overlong tuples |
15-Jul-2009 18:05 | BrianH | Comment : 0001377 | Added | - |
15-Jul-2009 18:02 | BrianH | Status | Modified | submitted => reviewed |
15-Jul-2009 18:02 | BrianH | Category | Modified | Native => Datatype |
15-Jul-2009 18:02 | BrianH | Summary | Modified | TO-TUPLE on a hex issue allows overlong tuples => TO-TUPLE on a hex issue, or set-path assignement of a tuple, allows overlong tuples |
15-Jul-2009 12:40 | meijeru | Comment : 0001373 | Added | - |
15-Jul-2009 12:39 | meijeru | Code | Modified | - |
15-Jul-2009 10:38 | meijeru | Ticket | Added | - |