[REBOL] Re: another hash bug
From: holger::rebol::com at: 4-Jan-2002 10:02
On Thu, Jan 03, 2002 at 07:08:31PM +0100, Romano Paolo Tenca wrote:
> Here it is:
>
> b: [1 2 3]
> h: make hash! b
> set [a1] b
> set [a2] h
>
> >> a1
> == 1
> >> a2
> == make hash! [1 2 3]
>
> a2 should be 1 like a1
No. A hash! is not a block!. Only a real block! is mapped to data values
within the set block. All other block-series (hash, list, paren etc.)
are treated as single values. That's how it is documented and
implemented.
--
Holger Kruse
[holger--rebol--com]