Project

General

Profile

Feature #1844

Immediates Should Not Respond to :dup

Added by runpaint (Run Paint Run Run) almost 11 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Target version:
[ruby-core:24624]

Description

=begin
Immediate can't be dup'd but they :respond_to?(:dup). This leads to ugly logic for determining whether a value can be dup'd. I suggest that immediates return false for :respond_to?(:dup). This is consistent with methods that would raise a NotImplementedError returning false for #respond_to?.
=end

Also available in: Atom PDF