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

[REBOL] Re: Linguistic influences

From: rotenca:telvia:it at: 13-May-2002 0:30

Hi Gabriele
> RPT> I asked for a /tail refinement in insert. It should be also possible to
create
> RPT> alias of refined words. > > What do you mean?
head insert/tail "ab" "c" =="abc" alias my-append insert/tail head my-append "ab" "c" =="abc"
> RPT> About Change, I feel the need of a change/part which changes only a
fixed
> RPT> length of the destination series with a fixed length of the source
series.Now
> That was change's behavior before 2.2 or so. I don't think they'll > change it back...
I think it could be a new refinement, like /length head change/lenght "abc" "def" 2 =="dec"
> RPT> But i could not see a different mode to make it in the current version
of
> RPT> Rebol. Anyone see it? > > remove/part + insert/part ?
Now I do: change-length: func [dest source length][ change dest copy/part source length ] head change-length "abc" "def" 2 == "dec" de is copied twice and new memory allocated for it every time. (my real "de" is 1 Mb long!) This doesn't seem more fast: change-length2: function [dest source length][x][ x: "" change dest head insert/part clear x source length ] head change-length2 "abc" "def" 2 =="dec" --- Ciao Romano