Re: so, what's the proper way to replace funcionality of GOTO ?

2013-02-15 Thread Robert Klemme
On Fri, Feb 15, 2013 at 7:17 PM, Stu P. D'naim wrote: > Firstly, I know what are Functions/Methods, but I find GOTO much easier > to follow (and also more powrfull, because I can RETURN wherever I want > - in GOSUB, and Functions, you always return to the point you started > from) Where's the di

Re: Ruby "visionary" code

2013-02-15 Thread Robert Klemme
On Fri, Feb 15, 2013 at 5:46 PM, Alex Gutteridge wrote: > It's quite common in Ruby to alias methods if that improves readability. > Whether you consider the additional code worthwhile seems to me a pretty > subjective call. Generally I would agree with you though that generating a > whole new me

Re: Select "columns" from multidimensional array?

2013-02-15 Thread Robert Klemme
On Fri, Feb 15, 2013 at 3:55 PM, Joel Pearson wrote: > Hah, I wrote that head exploding comment first and then managed to work > out what it did afterwards. Still took a few minutes of smashing my head > into the desk to make room for the new thought though ;¬) LOL > Using a Hash sounds like a g

Re: Select "columns" from multidimensional array?

2013-02-15 Thread Robert Klemme
On Thu, Feb 14, 2013 at 11:50 PM, Joel Pearson wrote: > Interesting Matrix build. It's giving me a bit of a headache just trying > to figure out the links involved. > > So MatrixPart defines the methods and the "parent" matrix (held as an > instance variable); and row and column both use these met

Re: Ruby "visionary" code

2013-02-15 Thread Robert Klemme
On Fri, Feb 15, 2013 at 12:25 PM, Elr0ndK Asda wrote: > I just want to know who written the second method, just for curiosity... Why do you ask here who wrote the second method? How could we possibly know? Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rub

Re: skip iteration in each loop

2013-02-15 Thread Robert Klemme
On Fri, Feb 15, 2013 at 1:17 PM, botp wrote: > On Fri, Feb 15, 2013 at 4:11 PM, Saurav Chakraborty > wrote: >> >> I want to skip iteration for few values depending on dynamic condition. >> >> Say I have a persons array [1,2,3,4,5,6,7,8] and while iterating if the >> one of the values equals 2, th

Re: Ruby command line options s and S

2013-02-15 Thread Robert Klemme
On Thu, Feb 14, 2013 at 9:15 AM, Love U Ruby wrote: > Nice advice you have given to me. But When people would get stuck, then > they could ask for help - in this mailing list. Is not it? Please read this: http://www.catb.org/~esr/faqs/smart-questions.html > People who are experienced they must