Project

General

Profile

Actions

Feature #1844

closed

Immediates Should Not Respond to :dup

Added by runpaint (Run Paint Run Run) over 15 years ago. Updated almost 13 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