From: "Mauricio Fernández" Date: 2003-03-21T07:30:09+09:00 Subject: Re: Something Confusing On Fri, Mar 21, 2003 at 07:06:44AM +0900, feno7@gmx.de wrote: > > Hello Dear Ruby-Users, > > there is something confusing about the methods .dump, .load and .restore > within the Marshalling-Routines: > > The Documentations says that with .dump a class could be stored on disk and > with .load it could be used as .new to create an object, but this is not > correct, only with the .restore method a new object could be created. > > I tested this with ruby version 1.6.8 and 1.8.0 both same results. marshal.c: rb_define_module_function(rb_mMarshal, "load", marshal_load, -1); rb_define_module_function(rb_mMarshal, "restore", marshal_load, -1); If one works, the other should. They are synonyms. -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com 'Ooohh.. "FreeBSD is faster over loopback, when compared to Linux over the wire". Film at 11.' -- Linus Torvalds