On Fri, 18 Apr 2003, Yukihiro Matsumoto wrote:
> |
> |When running this this with the -w option I get the following
> |warning:
> |
> |    ex1.rb:4: warning: ambiguous first argument; make sure
>
> make sure whether what you wrote is either
>
>   * regexp as the first argument
>   * division "str.gsub! / a"
>
> wrap arguments with parentheses, if you don't want to see the
> warning.
>

Thanks for the explanation.

I feel that the "make sure" phrase of the warning message doesn't
add anything to help me understand the warning (it rather made me
confused). If it always has to do with missing parentheses, wouldn't
it be better to mention that, or otherwise just remove the "make
sure" part ?

/Johan Holmberg