Project

General

Profile

Actions

Bug #12866

closed

Complex should not respond to clamp

Bug #12866: Complex should not respond to clamp

Added by timocp (Tim Peters) almost 10 years ago. Updated almost 10 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

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago Actions #1

  • 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: PDF Atom