Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Bug! Duplicate refinemets aren't checked

 [1/5] from: al::bri::xtra::co::nz at: 2-Jun-2002 18:56


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" Andrew Martin ICQ: 26227169 http://valley.150m.com/

 [2/5] from: anton:lexicon at: 2-Jun-2002 19:06


That's the same in the previous release (REBOL/View 1.2.1.3.1 21-Jun-2001) abd in the latest beta (REBOL/View 1.2.5.3.1 6-May-2002) Should submit it to feedback. Was it a bad bug for you? Anton.

 [3/5] from: al:bri:xtra at: 2-Jun-2002 21:46


Anton wrote:
> Was it a bad bug for you?
No. Just a bit disturbing. Andrew Martin ICQ: 26227169 http://valley.150m.com/

 [4/5] 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]]
<<quoted lines omitted: 3>>
> ** 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

 [5/5] from: anton:lexicon at: 3-Jun-2002 0:20


You mean like this? f: func [/test a][print a] f/test/test 1 2 ; == 2 Anton.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted