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.