ruby-changes:13850
From: naruse <ko1@a...>
Date: Wed, 4 Nov 2009 22:42:13 +0900 (JST)
Subject: [ruby-changes:13850] Ruby:r25650 (trunk): Add rdoc about objects can't Marshal#dump.
naruse 2009-11-04 22:42:03 +0900 (Wed, 04 Nov 2009) New Revision: 25650 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25650 Log: Add rdoc about objects can't Marshal#dump. [ruby-core:23314] Modified files: trunk/marshal.c Index: marshal.c =================================================================== --- marshal.c (revision 25649) +++ marshal.c (revision 25650) @@ -890,6 +890,12 @@ * data = Marshal.dump(o) * obj = Marshal.load(data) * obj.sayHello #=> "hello\n" + * + * Marshal can't dump following objects: + * * anonymous Class/Module. + * * objects which related to its system (ex: Dir, File::Stat, IO, File, Socket and so on) + * * an instance of MatchData, Data, Method, UnboundMethod, Proc, Thread, ThreadGroup, Continuation + * * objects which defines singleton methods */ static VALUE marshal_dump(int argc, VALUE *argv) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/