metaeducation / rebol-issues

6 stars 1 forks source link

POKE object! allowed in spec, doesn't work #776

Open rebolbot opened 15 years ago

rebolbot commented 15 years ago

Submitted by: BrianH

From meijeru: "POKE does not accept object! as its first argument (nor should it, I think) event though its spec allows it."

Either the spec should be changed, or it should be made to work.

(This ticket is split from #769)
>> source poke
poke: make action! [[
    {Returns value after changing its data at the given index. (Modifies)}
    value [series! map! gob! money! date! time! object! port! tuple! bitset!]
    index {Index offset, symbol, or other value to use as index}
    data "New value"
]]
>> poke make object! [a: 1] 'a 1
** Script error: cannot use poke on object! value

CC - Data [ Version: alpha 51 Type: Bug Platform: All Category: n/a Reproduce: Always Fixed-in:alpha 54 ]

rebolbot commented 15 years ago

Submitted by: Carl

It's been removed from POKE (and also from PICK - reflectors replace it.)