From: Martin Bosslet Date: 2011-01-29T02:58:36+09:00 Subject: [ruby-core:34942] [Ruby 1.9-Bug#4325] [ext/openssl] Encoding of subclasses fails when it shouldn't Issue #4325 has been updated by Martin Bosslet. Hi, I found a imo quite reasonable use case for sublassing Sequence or Set. Imagine you have an instance of a rather large sequence or set permanently stored in a variable somewhere - and this instance gets encoded to DER very often (e.g. for building a digest of the DER bytes). To improve performance of this operation, one could subclass sequence and cache the DER-encoded form by lazily setting an instance variable of the subclass, so that the actual encoding has to be done only once. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4325 ---------------------------------------- http://redmine.ruby-lang.org