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

[REBOL] Re: BASIC-like string functions

From: greggirwin:starband at: 28-Aug-2001 10:24

Hi Joel,
>>
If you really want to "equate to BASIC's" string functions, then you will want to copy, as that's the real behavior of BASIC. If you use the non-copying version of Right, and subsequently modify the resulting string value, you'll find that you've also changed the original, due to sharing of the underlying sequence of characters.
>>
Right, thanks for confirming that for me. Even though I can see where the non-copy version might be nice from an efficiency standpoint, I think it's better to be safe and have them all conform to the same behavior. Thanks, --Gregg