ok something your post does bring up intrinsically not ok with Pharo, but not threatening a bug, as in normal code practice:
a) We should never assign values into the arguments.. On compiling .. As I see it, the Pharo compiler makes "aText" now a temp variable of the block ( actually the while loop is not relevant .. ) The argument "aNumb" actually takes on the value of the first argument viz: of the passed aText.. It would be nicer if the compiler refuses to accept assignment to an argument of the method.. As for suggestion that you liked, I would suggest simply run through Pharo By Example first thoroughly... and then take up as much of test runs through existing applications to understand some of the concepts of how to code.. On Thu, Aug 7, 2014 at 10:08 AM, aria2end <aria2...@gmail.com> wrote: > Hi james, > > Your post not only resolved the issue but also introduced me a new approach > which I was looking for it. > Thank you > > do you know the reason why assigning to a passed-in argument is illegal by > any chance ? > > > > -- > View this message in context: > http://forum.world.st/I-need-some-explaination-about-arguements-assignment-tp4772102p4772108.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > >