logo       

Re: Block evaluation: msg#00084

lang.smalltalk.squeak.beginners

Subject: Re: Block evaluation


Soory , of course it must be : x:= [ y:=1. z:=2. z+y. ] . x value.
and this works.

But why can't I do this:
x:= [ y:=1. z:=2. z+y. ] .
and evaluate it later?


Regards
Ulli


Am 18.12.2006 um 01:04 schrieb Ulrich Hermann:

Hi,

I try to evalute the following block, but it doesn't work. I allways got a error message.

| x y z |
x:= [ y:=1. z:=2. x+y. ] . x value. [] in UndefinedObject>>DoIt {[y := 1. z := 2]}


Regards
Ulli


_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise