[ruby-core:77793] Re: [Ruby trunk Feature#12012] Add Boolean method

From: Nobuyoshi Nakada <nobu@...>
Date: 2016-10-28 07:56:18 UTC
List: ruby-core #77793
On 2016/10/28 11:57, RRRoy BBBean wrote:
> irb(main):002:0> !!('hi')
> (irb):2: warning: string literal in condition
> => true
> 
> Why do I get this warning? Shouldn't I be able to use bang-bang to convert anything to it's corresponding Boolean value?

Please file a new ticket to report a bug.

BTW, why doesn't Mail_to_issue work?


Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread