[ruby-talk:00378] Re: Store and load

From: "Michael Neumann" <neumann@...>
Date: 1999-06-03 10:47:55 UTC
List: ruby-talk #378
Hi...


From: GOTO Kentaro <gotoken@math.sci.hokudai.ac.jp>
Subject: [ruby-talk:00375] Re: Store and load


> I don't think IO#>> is useful because `io >> a >> b' is not easier to
> read for me.  Would you show me some examples of use?
You're right. IO#>> is not important, but Object#load or Object#serialize.



> And I have a question. How can the length of input be determined?
> Do you think `$/' for the separator?
I think on storing and loading complex objects not strings or integers.
Every object should know how to load itself.


> On the other hand, in Kernel module a method which is named `load' is
> already defined as a function to load and to execute.
"load" is perhaps the wrong name.


bye
Michael

In This Thread