Project

General

Profile

Actions

Feature #1844

closed

Immediates Should Not Respond to :dup

Added by runpaint (Run Paint Run Run) over 14 years ago. Updated about 12 years ago.

Status:
Rejected
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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0