Project

General

Profile

Actions

Feature #13125

closed

MRI has too much Qtrue : Qfalse;

Added by shyouhei (Shyouhei Urabe) over 7 years ago. Updated over 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:79066]
Tags:

Description

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0