Project

General

Profile

Actions

Bug #19868

closed

`Process::Status` methods for compatibility with `Fixnum`

Added by nobu (Nobuyoshi Nakada) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Target version:
-
[ruby-core:114668]

Description

Looking at 54274b8c65a0981f1c69055a1513ba3c614dd675, noticed that pst_rshift contains shift by a negative integer, an unspecified behavior in C99.

I think an exception would be ok for such argument, also we can suggest alternative methods to encourage the transition.

https://github.com/nobu/ruby/tree/process_status-fixnum-compatibility
https://github.com/ruby/ruby/pull/8392

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Description updated (diff)
Actions #2

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Status changed from Open to Closed

Applied in changeset git|b6de0a6c69a4857ca4347f65d7c9a5cb6e52c5bd.


[Bug #19868] Suggest other Process::Status method for & and >>

Process::Status#& and Process::Status#>> are provided only for
the backward compatibility with older Ruby than 1.8 where $? was
a Fixnum, and the knowledge about internals of system dependent
macros is necessary to use them. Modern programs and libraries
should not need these methods.

Actions

Also available in: Atom PDF

Like0
Like0Like0