Bug #12866
closed
Complex should not respond to clamp
Added by timocp (Tim Peters) almost 8 years ago.
Updated almost 8 years ago.
Description
Comparable#clamp
has been added, but doesn't work in Complex
. It should be undefined on Complex
like other Comparable
methods are.
Files
- 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]
Also available in: Atom
PDF
Like0
Like0