From: eregontp@... Date: 2017-10-06T20:58:47+00:00 Subject: [ruby-core:83168] [Ruby trunk Feature#13984] BigDecimal should be immutable/frozen and return itself on #dup Issue #13984 has been reported by Eregon (Benoit Daloze). ---------------------------------------- Feature #13984: BigDecimal should be immutable/frozen and return itself on #dup https://bugs.ruby-lang.org/issues/13984 * Author: Eregon (Benoit Daloze) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- Currently, BigDecimal instances are not frozen, and supports #dup by returning a new instance. In the spirit of #12979 and #13983, I think BigDecimal instances should always be frozen. Then BigDecimal#dup/clone should just return the same instance. -- https://bugs.ruby-lang.org/ Unsubscribe: