REBOL3 tracker
  0.9.12 beta
Ticket #0001379 User: anonymous

Project:



rss
TypeBug Statustested Date12-Dec-2009 12:52
Versionalpha 95 CategoryError Handling Submitted bymeijeru
PlatformAll Severityminor Prioritynormal

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 ton/a Fixed inalpha 97 Last Update6-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 -