Hello [EMAIL PROTECTED]!

On 29-Set-99, you wrote:

 i> Using your approach:
 i>>> compose [ ([print "Oops."]) ]
 i> == [print "Oops."]
 i>>> 

 i> That is not what we wanted. We wanted print Oops to be
 i> executed. That's why we put it in parentheses. Leave away the
 i> inner block and you get Jeff's version:

 i>>> compose [ (print "Oops.") ]
 i> Oops.
 i> == [unset]

Uhmm, as usual I should have explained myself better. :-)

>> compose [ (print "Good" []) ]
Good
== []

Notice that if you return a block to compose, it will insert its
contents (and not the block itself!) in that position. Like this:

>> compose [a b c (load ask "What to add? ")]
What to add? d e f
== [a b c d e f]

So, if you don't want to add anything:

>> compose [a b c (load ask "What to add? ")]
What to add? 
== [a b c]

I hope it is clearer now. :-)

Regards,
    Gabriele.
-- 
o--------------------) .-^-. (----------------------------------o
| Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila |
| GIESSE on IRC     \ \-\_/-/ /  http://www.amyresource.it/AGI/ |
o--------------------) `-v-' (----------------------------------o

Reply via email to