From: Archit Baweja Date: 2004-02-26T05:38:31+09:00 Subject: Re: print with no arguments? Hey Oliver Cromm writes: > "Ara.T.Howard" wrote: > > > On Wed, 25 Feb 2004, Oliver Cromm wrote: > > > >> I feel that the Ruby interpreter is poking fun at me with this > >> error: > >> > >> findcols.rb:84:in `print': wrong number of arguments(1 for 0) > >> (ArgumentError) > >> > > perhaps you have another 'def print...' in scope somewhere which > > does NOT take an argument? > > Indeed, that's it. So I was poking fun at me myself. I'll quickly > change the name of that "print" function! even though you found an error it wouldn't hurt if you put it like so print("*") if ... so that the precedence is clear. The interpreter could have seen it as print ("*" if ...) which would be runtime problem. Cheers! Archit > > Thanks! > -- > Oliver Cromm