[#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:02249] Re: setter() for local variables

From: matz@... (Yukihiro Matsumoto)
Date: 2000-03-29 15:01:14 UTC
List: ruby-talk #2249
Hi,

In message "[ruby-talk:02247] Re: setter() for local variables"
    on 00/03/29, ts <decoux@moulon.inra.fr> writes:

|Y> To archive your wish, one idea is to make BDB to save original
|Y> references in marshaling mode, then verify the values on close.
|Y> Just for an idea.
|
| Well my problem is that I want also write :
|
|
|   db[[1, 2]].push(3)
|   db.each do |x, y|
|# etc
|   end
|
| i.e. without the db.close

How about using finalizers.  It's hard to use finalizers from Ruby,
but since you are making extension, it's easy to use them from C.

You must give (*free) function to Data_{Make,Wrap}_Struct().  You can
verify values within the (*free) function.

| I can put this temporary version on an anonymous server if you want to
| look at it, but there are many bugs :-) :-) :-)
|
| If all is OK, it will be public.

I'd like to see them.  Please.

							matz.

In This Thread