[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:02296] Re: setter() for local variables

From: matz@... (Yukihiro Matsumoto)
Date: 2000-03-31 14:07:16 UTC
List: ruby-talk #2296
Hi,

In message "[ruby-talk:02295] Re: setter() for local variables"
    on 00/03/31, ts <decoux@moulon.inra.fr> writes:
|
|Y>       def []=(k,v)
|Y>         @tbl[k] = v
|Y>       end
|
| This mean that the whole database is in memory (and not on the disk), no ?

By this proof-of-concept code, yes.  You can do like:

       def []=(k,v)
         @tbl[k] = v
         @db[::Mashal::dump(k)] = ::Mashal::dump(v)
       end

I'm not sure if it's better.

							matz.

In This Thread