Re: [Pharo-users] I need some explaination about arguements assignment

2014-08-07 Thread aria2end
That makes sense now. thanks. -- View this message in context: http://forum.world.st/I-need-some-explaination-about-arguements-assignment-tp4772102p4772247.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] I need some explaination about arguements assignment

2014-08-07 Thread Clément Bera
2014-08-07 6:38 GMT+02:00 aria2end : > 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 ? > > This is illegal because then

Re: [Pharo-users] I need some explaination about arguements assignment

2014-08-06 Thread S Krish
See enclosed screen shot.. On Thu, Aug 7, 2014 at 11:59 AM, S Krish wrote: > > 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 compi

Re: [Pharo-users] I need some explaination about arguements assignment

2014-08-06 Thread S Krish
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 ( a

Re: [Pharo-users] I need some explaination about arguements assignment

2014-08-06 Thread aria2end
I wanted to make my code more readable but I just didn't know how to do that. Your code really helped me to see how this can be achieved. thanks -- View this message in context: http://forum.world.st/I-need-some-explaination-about-arguements-assignment-tp4772102p4772109.html Sent from the Pharo

Re: [Pharo-users] I need some explaination about arguements assignment

2014-08-06 Thread aria2end
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-a

Re: [Pharo-users] I need some explaination about arguements assignment

2014-08-06 Thread Hilaire
You should first take time to improve the readability of your code, do not forget it is your own food. What about starting something like (no idea what you want to do however): recursiveShowLists: aLoL withText: aText tabsNumber: aNumb | counter index copyText | copyText := aText. aLoL lols ifE

Re: [Pharo-users] I need some explaination about arguements assignment

2014-08-06 Thread aria2end
The function is not complete and it doesn't do anything. I tried to write a recursive function to get value of each node of my tree structure, put it in a String and return it in a proper format so later show it on the transcript but I couldn't never done that and now I rewritten it completely in a

Re: [Pharo-users] I need some explaination about arguements assignment

2014-08-06 Thread James Foster
Hi Aria, Welcome to Smalltalk and Pharo. I haven’t tried executing your code but I have a couple observations. I believe that the problem is in attempting to assign to a passed-in argument. As far as I know, the following is illegal: foo: aString aString := aString , ‘ bar’. Method (an

Re: [Pharo-users] I need some explaination about arguements assignment

2014-08-06 Thread S Krish
I am quite at loss to really understand the purpose of the code written...if you can show in some manner what are you trying to achieve some pointers can be given in the correct direction. As is I presume the code will need to rewritten completely.. On Thu, Aug 7, 2014 at 8:43 AM, aria2end wrote

[Pharo-users] I need some explaination about arguements assignment

2014-08-06 Thread aria2end
Hello, I am new to smalltalk and I would really appreciate your help so I can better use and understand Pharo. So here is the problem, I wanted to implement a function to get the value of my tree struct nodes in a recursive manner and I wanted to concatenate them to a String ( aText ) and later s