https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112013-01-25T12:55:01ZRuby Issue Tracking SystemRuby master - Bug #7627: Instance variables of a Struct object are marshaled even when marshal_dump method is defined.https://bugs.ruby-lang.org/issues/7627?journal_id=356142013-01-25T12:55:01Zko1 (Koichi Sasada)
<ul></ul><p>I'm not sure about this issue, but is it high-priority trunk issue?<br>
or not important issue?</p> Ruby master - Bug #7627: Instance variables of a Struct object are marshaled even when marshal_dump method is defined.https://bugs.ruby-lang.org/issues/7627?journal_id=356692013-01-26T22:39:18Znobu (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 r38952.<br>
Kirill, 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: marshal_dump instance varialbes</p>
<ul>
<li>marshal.c (w_object): dump instance varialbes of the result of<br>
marshal_dump not the original object. <a href="/issues/7627">[ruby-core:51163]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Instance variables of a Struct object are marshaled even when marshal_dump method is defined. (Closed)" href="https://bugs.ruby-lang.org/issues/7627">#7627</a>]</li>
<li>complex.c (nucomp_marshal_dump): need to copy instance variables.</li>
<li>rational.c (nurat_marshal_dump): ditto.</li>
</ul>