[REBOL] Re: to-path newline problem?
From: g:santilli:tiscalinet:it at: 15-Aug-2001 13:03
Hello Joel!
On 14-Ago-01, you wrote:
JN> but that is hardly the same as simply copying, as it requires
JN> knowing an operator and identity element suitable for the
JN> type(s) of the values in the block!
While thinking about this, I found out another "strange" behaviour:
>> block: [
[ 1
[ "one"
[ [e--mail--com]
[ word
[ [block]
[ $10
[ 15-Aug-2001
[ a/path
[ :get-word
[ set-word:
[ #etc.
[ ]
>> block2: []
>> foreach value block [append/only block2 make :value :value]
== [1 "one" [e--mail--com] word [block]
$10.00
15-Aug-2001 a/path :get-word set-word: #etc.]
So money! and date! are not copied by make... or it copies the
newline hint too. (I think the former is more likely, looking like
an optimization. But why not on integer!s?)
Regards,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/