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

[REBOL] Re: Block Creation Re:

From: joel:neely:fedex at: 20-Oct-2000 8:33

Hello, list (and self!) , he said, following with the oft-quoted phrase, "Silly me!" There's an embarrassing typo in point 14. Cut and paste works much better if you cut the CORRECT version to past into the essay! Also, according to Professor Peano, S(14) = 15 && S(14) <> 14 Sorry! -jn- Joel Neely wrote:
> ... > > 14) All of this means that > > b: func [/local bb] [b: [] append bb "hi"] >
Of course, this should have been written as b: func [/local bb] [bb: [] append bb "hi"] (as it was in the console transcript a few lines below).
> is actually equivalent to > > b: func [][[] append first second :b "hi"] > > (assuming that you know that SECOND :B is a way to get to the > block that is the body of B, of course!) > > >> b: func [][[] append first second :b "hi"] > > >> b == ["hi"] > >> b == ["hi" "hi"] > >> b == ["hi" "hi" "hi"] > > >> b: func [/local bb] [bb: [] append bb "hi"] > > >> b == ["hi"] > >> b == ["hi" "hi"] > >> b == ["hi" "hi" "hi"] >
And the following should have been 15...
> 14) Every time a series is created "from scratch" it is a different > series than any previously existing series. > > ...
and 16!
> 15) The block that constitutes the body of a function (and all literal > values in it!) is created when FUNC is evaluated. > > ...
-- ; Joel Neely [joel--neely--fedex--com] 901-263-4460 38017/HKA/9677 REBOL [] do [ do func [s] [ foreach [a b] s [prin b] ] sort/skip do function [s] [t] [ t: "" foreach [a b] s [repend t [b a]] t ] { | e s m!zauafBpcvekexEohthjJakwLrngohOqrlryRnsctdtiub} 2 ]