https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112013-03-08T16:34:44ZRuby Issue Tracking SystemRuby master - Bug #8041: Marshal incompatibility with prependhttps://bugs.ruby-lang.org/issues/8041?journal_id=373832013-03-08T16:34:44Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/37383/diff?detail_id=26824">diff</a>)</li></ul><p>=begin<br>
To be honest, I haven't considered about marshaling prepended objects at all.<br>
How could we represent it?</p>
<p>(1) add new type, (({TYPE_PREEXTEND})) for example.<br>
(2) allow the current dumped format and treat the class in extending modules as the mark of prepend.</p>
<p>The former may need marshal version to bump up, I don't want it.<br>
=end</p> Ruby master - Bug #8041: Marshal incompatibility with prependhttps://bugs.ruby-lang.org/issues/8041?journal_id=373962013-03-09T00:26:11Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r39642.<br>
Marc-Andre, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>marshal.c: prepended objects</p>
<ul>
<li>marshal.c (r_object0): load prepended objects. treat the class of<br>
extended object in the included modules as prepended singleton<br>
class. <a href="/issues/8041">[ruby-core:53202]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Marshal incompatibility with prepend (Closed)" href="https://bugs.ruby-lang.org/issues/8041">#8041</a>]</li>
</ul>