Indeed that is the way it works. In Lisp a list (when unquoted!) is always evaluated. In Rebol evaluation is not standard, but must be triggered by a calling function (outside the block). And indeed also, when a block is being evaluated functions within the block will be recognized and evaluated also.
2010/8/23 Emeka <[email protected]> > Hello All, > > This where I got my conclusion. > > I mentioned before that blocks are a container type. An ordered sequence of > values. Actually they are an ordered sequence of un-evaluated values. What > that means is that when a block itself is evaluated the values it contains > are not evaluated. The values a block contains are evaluated when a > function > is applied to the block > > > http://www.codeconscious.com/rebol/articles/rebol-concepts.html#Firsttrapforbeginners > > > Is the last statement correct? > > > Emeka > > On Mon, Aug 23, 2010 at 4:09 PM, Ed O'Connor <[email protected]> wrote: > > > I don't know much about computer science, but I think REBOL's blocks share > > some things in common with Smalltalk: > > > > http://web.cecs.pdx.edu/~harry/musings/SmalltalkOverview.html#Blocks<http://web.cecs.pdx.edu/%7Eharry/musings/SmalltalkOverview.html#Blocks> > > > > REBOL's cool twist is that a block can hold code or data and treat them > > both > > equally/interchangeably, and can be accessed in a uniform manner (a data > > collection). > > > > In LISPy languages, the term 'thunk' might be the appropriate comparison. > > > > > > > http://stackoverflow.com/questions/925365/what-is-a-thunk-as-used-in-scheme-or-in-general > > > > -- Ed > > > > On Mon, Aug 23, 2010 at 10:09 AM, Arie van Wingerden <[email protected] > > >wrote: > > > > > No. In Lisp the x would be evaluated as being a function with arg y. > > > In Rebol x is (generally speaking) not a function. > > > > > > Do you have a short example to show your confusion? > > > > > > 2010/8/23 Emeka <[email protected]> > > > > > > > Arie, > > > > > > > > But when you apply func to [x y] it seems to me that it starts to > > behave > > > > like Lisp. > > > > > > > > Am I wrong? > > > > > > > > Emeka > > > > > > > > On Mon, Aug 23, 2010 at 1:51 PM, Arie van Wingerden < > [email protected] > > > > >wrote: > > > > > > > > > Hi, > > > > > the answer of Henrik is fine. > > > > > To answer the "Lisp" part: in Rebol [x y] does not mean: > > > > > - apply function x to argument y > > > > > which in the Lisp list (x y) would be the case. > > > > > [] in Rebol is just data. > > > > > Regards, > > > > > Arie > > > > > > > > > > 2010/8/22 Emeka <[email protected]> > > > > > > > > > > > Hello All, > > > > > > > > > > > > Is [] a cousin of LISP list () (serving the purpose of procedure > > call > > > > and > > > > > > data structure) > > > > > > > > > > > > > > > > > > Regards, > > > > > > Emeka > > > > > > > > > > > > On Sun, Aug 22, 2010 at 6:09 PM, Izkata <[email protected]> > wrote: > > > > > > > > > > > > > If you open the file in a text editor, you'll see that it does > > > > contain > > > > > > > "AfricanChild" on one line. > > > > > > > > > > > > > > All that's needed is a newline in the middle: > > > > > > > > > > > > > > write kool "African" > > > > > > > write/append kool newline > > > > > > > write/append kool "Child" > > > > > > > > > > > > > > Alternatively, 'write has another refinement that could help > > here: > > > > > > > > > > > > > > write/lines kool "African" > > > > > > > write/lines/append kool "Child" > > > > > > > > > > > > > > The /lines refinement works similar to read/lines - this would > > > result > > > > > in > > > > > > > the > > > > > > > same as the above: > > > > > > > > > > > > > > write/lines kool [ "African" "Child" ] > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Sun, Aug 22, 2010 at 11:46 AM, Emeka <[email protected]> > > > > wrote: > > > > > > > > > > > > > > > Hello All, > > > > > > > > > > > > > > > > I have the below; > > > > > > > > > > > > > > > > kool: %gin.txt > > > > > > > > > > > > > > > > write kool "African" > > > > > > > > write/append kool "Child" > > > > > > > > > > > > > > > > Now, I would want to read the file , and print first > "African", > > > and > > > > > > > second > > > > > > > > "Child" > > > > > > > > > > > > > > > > I tried > > > > > > > > read/lines kool > > > > > > > > == [ "AfricanChild"] > > > > > > > > > > > > > > > > I was looking for something like [ "African" "Child"] > > > > > > > > > > > > > > > > Regards, > > > > > > > > Emeka > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > To unsubscribe from the list, just send an email to > > > > > > > > lists at rebol.com with unsubscribe as the subject. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > $BAU$G$FL4(B > > > > > > > > > > > > > > -- > > > > > > > To unsubscribe from the list, just send an email to > > > > > > > lists at rebol.com with unsubscribe as the subject. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > To unsubscribe from the list, just send an email to > > > > > > lists at rebol.com with unsubscribe as the subject. > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > To unsubscribe from the list, just send an email to > > > > > lists at rebol.com with unsubscribe as the subject. > > > > > > > > > > > > > > > > > > > > > > -- > > > > To unsubscribe from the list, just send an email to > > > > lists at rebol.com with unsubscribe as the subject. > > > > > > > > > > > > > > > > > -- > > > To unsubscribe from the list, just send an email to > > > lists at rebol.com with unsubscribe as the subject. > > > > > > > > > > > > -- > > To unsubscribe from the list, just send an email to > > lists at rebol.com with unsubscribe as the subject. > > > > > > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. > > -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
