in reply to Re: (OT -- ruby) Re: Re: Favorite programming language, other than Perl:
in thread Favorite programming language, other than Perl:
But about the other, I probably need to clarify a bit. The example in the doc was the following:
Which prints:def a print "Function 'a' called\n" 99 end for i in 1..2 if i == 2 print "a=", a, "\n" else a = 1 print "a=", a, "\n" end end
Frankly, I think that's perverse, and object-orientation won't save you. What if, instead of printing, you'd tried to call "a.blah"? Presumably you'd get the same sort of bizarre results.a=1 Function 'a' called a=99
/s
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: (OT -- ruby) Re: Re: Favorite programming language, other than Perl:
by elusion (Curate) on May 11, 2002 at 13:44 UTC |