Project

General

Profile

Actions

Bug #5235

closed

Ruby fails to freeze Strings and Numerics.

Added by katmagic (Kat Magic) over 13 years ago. Updated over 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
Backport:
[ruby-core:39127]

Description

x = 0
x.freeze()
x += 1
x # => 1

s = ""
s.freeze()
s += "a"
s # => "a"

Actions

Also available in: Atom PDF

Like0
Like0Like0