https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112017-01-20T04:37:16ZRuby Issue Tracking SystemRuby master - Feature #13125: MRI has too much Qtrue : Qfalse;https://bugs.ruby-lang.org/issues/13125?journal_id=626042017-01-20T04:37:16Zshyouhei (Shyouhei Urabe)shyouhei@ruby-lang.org
<ul></ul><p>We looked at this issue at yesterday's developer meeting. Nobody was against introducing a macro. No consensus over its name was made though.</p>
<ul>
<li>RBOOL() seems like a member of RSTRING(), RARRAY() and family so not very good.</li>
<li>It is in fact a INT2FIX()'s family so I proposed BOOL2BOOL() but this sounds too strange.</li>
<li>What is needed is a "reverse" of RTEST() so RUNTEST() is proposed (I believe it was not serious).</li>
</ul> Ruby master - Feature #13125: MRI has too much Qtrue : Qfalse;https://bugs.ruby-lang.org/issues/13125?journal_id=626212017-01-20T14:11:53Zrmosolgo (Robert Mosolgo)rdmosolgo@gmail.com
<ul></ul><blockquote>
<p>"reverse" of RTEST()</p>
</blockquote>
<p>How about ...</p>
<ul>
<li>CTEST()</li>
<li>TEST2BOOL()</li>
<li>C2BOOL()</li>
</ul>
<p>Hope those help brainstorm a bit :)</p> Ruby master - Feature #13125: MRI has too much Qtrue : Qfalse;https://bugs.ruby-lang.org/issues/13125?journal_id=626222017-01-20T15:04:41Zznz (Kazuhiro NISHIYAMA)
<ul></ul><p>How about <code>BOOL2RBOOL</code>?</p> Ruby master - Feature #13125: MRI has too much Qtrue : Qfalse;https://bugs.ruby-lang.org/issues/13125?journal_id=626272017-01-21T05:54:37Zphluid61 (Matthew Kerwin)matthew@kerwin.net.au
<ul></ul><p>Seem to me like <code>VALUE2BOOL</code>, except perhaps for the way it casts Qnil to Qtrue</p> Ruby master - Feature #13125: MRI has too much Qtrue : Qfalse;https://bugs.ruby-lang.org/issues/13125?journal_id=626282017-01-21T07:24:03Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>Someone suggested <code>RB_BOOL</code> at the meeting.</p> Ruby master - Feature #13125: MRI has too much Qtrue : Qfalse;https://bugs.ruby-lang.org/issues/13125?journal_id=859432020-06-01T22:10:27Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li><li><strong>Backport</strong> deleted (<del><i>2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN</i></del>)</li></ul> Ruby master - Feature #13125: MRI has too much Qtrue : Qfalse;https://bugs.ruby-lang.org/issues/13125?journal_id=940712021-10-07T20:40:47Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p><code>RBOOL</code> was recently introduced for this purpose.</p>