[REBOL] Re: Bug! Duplicate refinemets aren't checked
From: rebol:optushome:au at: 2-Jun-2002 22:33
----- Original Message -----
From: "Andrew Martin" <[Al--Bri--xtra--co--nz]>
To: <[rebol-list--rebol--com]>
Sent: Sunday, June 02, 2002 4:56 PM
Subject: [REBOL] Bug! Duplicate refinemets aren't checked
> Bug! Duplicate function refinemets aren't checked.
>
> >> f: func [/base /test arg [string!]] [print ["arg:" arg]]
> >> f/test/test "123" "test"
> arg: test
> >> f/test/test "123"
> ** Script Error: f expected arg argument of type: string
> ** Near: f/test/test "123"
>
I don't see this one as a bug. I see it as useful for construction of
dynamic
function calls from sequentially updated (or appended data). This behaviour
(last in always wins)
is also consistent with, make object! [test: "123" test: "test"]
Cheers,
Allen K