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

2 small bugs. Reported already?

 [1/3] from: marekw::tpg::com::au at: 13-Jan-2001 23:47


Thanks everybody for response to my previous message. Let me have my last word about that.
>>test: [date 1-4-2000]
==[date 1-Apr-2000]
>>test/date: 1-7-2000
==[date 1-Jul-2000
>>test/date/month: 12
==12 This seems to be clear inconsistency. newdate: first next test/date: 22-11-1999 This works, but looks somewhat unintuitive. Still, like anybody, I can live with it. Probably somebody utilize it as it works. Bug 1:
>>write/lines %test tail ["line1" "line2" line3"] ; expecting nothing writen >>read %test
=="line1^/line2^/line3" My guess is, it's reported already Bug 2:
>> ? =< ; supprise here
USAGE: value1 = value2 DESCRIPTION: Returns TRUE if the values are equal. = is an op value. ARGUMENTS: value1 -- (Type: any) value2 -- (Type: any) ** Script Error: Operator is missing an argument. ** Where: ? = <
>> ? => ; expected behaviour to compare
** Syntax Error: Invalid word -- =>. ** Where: (line 1) ? =>

 [2/3] from: arolls:bigpond:au at: 15-Jan-2001 2:32


> Bug 1: > > >>write/lines %test tail ["line1" "line2" line3"] ; expecting > nothing writen > >>read %test > =="line1^/line2^/line3"
I get the same behaviour.
> Bug 2: > >> ? =< ; supprise here
<<quoted lines omitted: 11>>
> ** Syntax Error: Invalid word -- =>. > ** Where: (line 1) ? =>
I suppose it's because '< is an open-tag delimiter. Look at this:
>> 1 =< 4 6
== false
>> false =< 6 3
== true It looks like this is happening: < 4 6 ; returns logic! true, then... 1 = true ; returns logic! false Anton.

 [3/3] from: g:santilli:tiscalinet:it at: 14-Jan-2001 18:21


Hello Marek! On 13-Gen-01, you wrote: MW>>> write/lines %test tail ["line1" "line2" line3"] ; expecting MW>>> nothing writen read %test MW> =="line1^/line2^/line3" MW> My guess is, it's reported already Maybe not; there's no problem if you report it another time, anyway. MW> Bug 2: The parser seems to have problems with words that contain < or >, since they delimit tags too. Other operators seem to have problems too:
>> '+
== +
>> '*
== *
>> '/
** Syntax Error: Invalid word-lit -- '. ** Where: (line 1) '/ (that's because of paths, I presume). Workaroud:
>> first [ / ]
== / MW>>> ? =< ; supprise here It should be <=.
>> help <USAGE:
value1 <= value2 DESCRIPTION: Returns TRUE if the first value is less than or equal to the second value. <= is an op value. ARGUMENTS: value1 -- (Type: any) value2 -- (Type: any) MW>>> ? => ; expected behaviour to compare Same here:
>> help >USAGE:
value1 >= value2 DESCRIPTION: Returns TRUE if the first value is greater than or equal to the second value.
>= is an op value.
ARGUMENTS: value1 -- (Type: any) value2 -- (Type: any) Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/

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