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

[REBOL] Re: make string!

From: ryan:christiansen:intellisol at: 27-Jun-2001 8:21

I had to slap the side of my head. I should've known the answer to this one. -Ryan Holger Kruse <[holger--rebol] To: [rebol-list--rebol--com] .com> cc: Sent by: Subject: [REBOL] Re: make string! rebol-bounce@ 06/26/2001 06:27 PM Please respond to rebol-list On Tue, Jun 26, 2001 at 05:02:59PM -0500, [ryan--christiansen--intellisol--com] wrote:
> Try as I might, I am unable to make an integer! value into a string!
> EXCEPT when I use 'append to append the integer! value to a string!
> Why can 'append take care of changing the datatype while make string! > cannot? For example: > > >> a: 2 > == 2 > >> b: make string! a > == ""
make string! 2 allocates an empty string of length 2, i.e. a string that has enough pre-allocated space to hold two characters without any performance penalty. It does not convert the number 2 to a string. -- Holger Kruse [holger--rebol--com]