From: "jeremyevans0 (Jeremy Evans)" <noreply@ruby-lang.org>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:105599] [Ruby master Feature#13125] MRI has too much Qtrue : Qfalse;
Date: Thu, 07 Oct 2021 20:40:47 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-94071.20211007204047.10@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-13125.20170112075627.10@ruby-lang.org
Issue #13125 has been updated by jeremyevans0 (Jeremy Evans).
Status changed from Open to Closed
`RBOOL` was recently introduced for this purpose.
----------------------------------------
Feature #13125: MRI has too much Qtrue : Qfalse;
https://bugs.ruby-lang.org/issues/13125#change-94071
* Author: shyouhei (Shyouhei Urabe)
* Status: Closed
* Priority: Normal
----------------------------------------
```
% git grep -P 'Q(true|false|nil|undef)\s+:\s+Q(true|false|nil|undef)' | wc -l
211
```
Out of those 211 occurrences the most interesting lines include:
```
complex.c:#define f_boolcast(x) ((x) ? Qtrue : Qfalse)
math.c:#define f_boolcast(x) ((x) ? Qtrue : Qfalse)
range.c:#define RBOOL(v) ((v) ? Qtrue : Qfalse)
rational.c:#define f_boolcast(x) ((x) ? Qtrue : Qfalse)
```
I strongly believe that we need an orthodox way to do this.
--
https://bugs.ruby-lang.org/
parent reply other threads:[~2021-10-07 20:41 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <redmine.issue-13125.20170112075627.10@ruby-lang.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-94071.20211007204047.10@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).