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

[REBOL] Re: Rebol Memory Allocation Strategy?

From: tim:johnsons-web at: 21-Sep-2002 14:59

Hi Ingo: * Ingo Hohmann <[ingo--2b1--de]> [020921 13:34]: <....>
> As far as I know you're right. A few additions, though ... > > my-obj: make object![ ; untested code > str: make string! 8192 > set 'my-f func[][ > clear str > ; appends much data to string... > ] ; end function > ] ;end object
I actually am using strategies like this, but it is nice having a supporting second opinion.... Thanks Ingo! -tj-
> this way you can just use 'my-f, without having to think about the > object! (no my-object/my-f needed). > > _or_ you could use > > my-f: func[/local str][ > str: "" > clear str > ; appends much data to string... > ] ; end function > > 'str being a literal string, it will be retained over function > invocation. Of course the first usage of the func might be slow, because > 'str would have to slowly grow, while being appended to. > > _or_ you use the ideas someone else woll surely come up with. > > Kind regards, > > Ingo > > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.alaska-internet-solutions.com http://www.johnsons-web.com