Project

General

Profile

Actions

Bug #12866

closed

Complex should not respond to clamp

Added by timocp (Tim Peters) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:77720]

Description

Comparable#clamp has been added, but doesn't work in Complex. It should be undefined on Complex like other Comparable methods are.


Files

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 7 years ago

  • Status changed from Open to Closed

Applied in changeset r56479.


complex.c: undefine clamp

  • complex.c (Init_Complex): undefine Complex#clamp, which does not
    work like other Comparable methods, because Complex does not
    have <=> method. patched by Tim Peters <zomg.tim AT gmail.com>
    in [ruby-core:77720]. [Bug #12866]
Actions

Also available in: Atom PDF

Like0
Like0