[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: Got stuck...
From:       Martin DeMello <martindemello () yahoo ! com>
Date:       2004-08-20 10:00:50
Message-ID: XUjVc.161300$gE.36171 () pd7tw3no
[Download RAW message or body]

Meino Christian Cramer <Meino.Cramer@gmx.de> wrote:
>    print (val + ?A).chr," "          # here ruby fails...error message below...
> 
>  basicenigma4.rb:175: warning: don't put space before argument parentheses

Other people have pointed the error out, but it's worth noting that
print is actually a method of Kernel, not a keyword, hence the need for
parens surrounding the entire argument.

martin

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic