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

[REBOL] Re: Bug in trim?

From: carl::cybercraft::co::nz at: 13-Dec-2001 8:01

On 12-Dec-01, Andrew Martin wrote:
> Looks like a bug with 'trim.
I'd say it's more a design flaw, as help says /with is the same as /all, which makes using it with /head a bit contradictory... USAGE: TRIM series /head /tail /auto /lines /all /with str DESCRIPTION: Removes whitespace from a string. Default removes from head and tail. TRIM is an action value. ARGUMENTS: series -- (Type: series port) REFINEMENTS: /head -- Removes only from the head. /tail -- Removes only from the tail. /auto -- Auto indents lines relative to first line. /lines -- Removes all line breaks and extra spaces. /all -- Removes all whitespace. /with str -- Same as /all, but removes characters in 'str'. (Type: char string) It'd make more sense if /with just replaced removing whitespace with removing str. Very odd that it doesn't, actually...
> I'll send it to [feedback--rebol--com] > Andrew Martin > ICQ: 26227169 http://valley.150m.com/ > -><- > ----- Original Message ----- > From: "Marcus Petersson" <[d4marcus--dtek--chalmers--se]> > To: <[rebol-list--rebol--com]> > Sent: Wednesday, December 12, 2001 1:06 PM > Subject: [REBOL] Bug in trim? >> What's going on here? >> >>>> trim/with "0000ff00" "0" >> == "ff" >>>> trim/head/with "0000ff00" "0" >> ** Script Error: Invalid path value: with >> ** Near: trim/head/with "0000ff00" "0" >> >> Marcus >> ------------------------------------ >> If you find that life spits on you >> calm down and pretend it's raining >> >> >> -- >> To unsubscribe from this list, please send an email to >> [rebol-request--rebol--com] with "unsubscribe" in the >> subject, without the quotes. >>
-- Carl Read