Type | Bug | Status | tested | Date | 12-Dec-2009 12:52 |
---|---|---|---|---|---|
Version | alpha 95 | Category | Error Handling | Submitted by | meijeru |
Platform | All | Severity | minor | Priority | normal |
Summary | PICK and POKE on GOB! values cannot use word as selector. For PICK there is no error message, just a NONE result. |
---|---|
Description | See example code. I understand the rationale for not having POKE, but PICK would do no harm, and the NONE result feeds my hope that this is a bug rather than a feature. |
Example code |
>> g: make gob! [] == make gob! [offset: 0x0 size: 100x100 alpha: 0] >> poke g 'offset 1x1 ** Script error: invalid argument: offset >> pick g 'offset == none ; would expect error too (or 0x0 !) |
Assigned to | n/a | Fixed in | alpha 97 | Last Update | 6-May-2010 09:11 |
---|
Comments | |
---|---|
(0001854)
BrianH 13-Dec-2009 22:40 |
PICK and POKE on gobs is for retrieving and working with subgobs, if any. Some gob types can contain other gobs - PICK and POKE refer to those. The gob you use in your example above doesn't have any contents, but the principle stands.
Gobs and events are not like object types, they are low-level. There's no reason to expect them to work like object types. PICK and POKE with word indexes shouldn't work. Marked as an error-handling bug because PICK should be throwing an error too, same as POKE. |
(0001985)
Carl 7-Feb-2010 03:01 |
Correct. Pick and poke control the pane list.
Added error message. |
Date | User | Field | Action | Change |
---|---|---|---|---|
6-May-2010 09:11 | BrianH | Status | Modified | built => tested |
7-Feb-2010 03:01 | Carl | Fixedin | Modified | => alpha 97 |
7-Feb-2010 03:01 | Carl | Status | Modified | reviewed => built |
7-Feb-2010 03:01 | Carl | Comment : 0001985 | Added | - |
13-Dec-2009 22:41 | BrianH | Category | Modified | Native => Error Handling |
13-Dec-2009 22:41 | BrianH | Status | Modified | submitted => reviewed |
13-Dec-2009 22:41 | BrianH | Comment : 0001854 | Modified | - |
13-Dec-2009 22:40 | BrianH | Comment : 0001854 | Added | - |
13-Dec-2009 21:08 | meijeru | Description | Modified | - |
13-Dec-2009 21:08 | meijeru | Code | Modified | - |
12-Dec-2009 12:52 | meijeru | Ticket | Added | - |