[REBOL] Re: Does REBOL cons?
From: anton:wilddsl:au at: 16-Mar-2006 19:43
I think Volker is right, probably rebol doesn't
use consing as you describe it.
Here is my document to understand rebol values,
words, strings and blocks:
It reflects my mental model.
Ahh! actually, the confusion may be that you think:
insert blk [d]
inserts a block. It does not ! The above is equivalent to:
insert blk 'd
That is, only a word was inserted into the blk.
After many iterations, the block is filled with many words
with the same name, "d".
To insert a block, you must use INSERT/ONLY:
insert/only blk [d]
This results in:
(Same goes for APPEND/ONLY.)