ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:105599] [Ruby master Feature#13125] MRI has too much Qtrue : Qfalse;
       [not found] <redmine.issue-13125.20170112075627.10@ruby-lang.org>
@ 2021-10-07 20:40 ` jeremyevans0 (Jeremy Evans)
  0 siblings, 0 replies; only message in thread
From: jeremyevans0 (Jeremy Evans) @ 2021-10-07 20:40 UTC (permalink / raw)
  To: ruby-core

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-07 20:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-13125.20170112075627.10@ruby-lang.org>
2021-10-07 20:40 ` [ruby-core:105599] [Ruby master Feature#13125] MRI has too much Qtrue : Qfalse; jeremyevans0 (Jeremy Evans)

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).