SWIG Ruby Memory Management

Charlie Savage schrieb:
> ...
> As can be seen in the code below, I have gone down the
hashtable route
> with a slight twist - I use a Ruby hash table from C to store these
> mappings. I did this instead of using a C++ map since I
wanted to the
> code to be just C and it was easier then implementing a hash table
> from scratch in C.
> ...

I can't say anything about your code, cause I've never used
SWIG yet, but it looks like you've done a very nice work.

Ditto.

I just wanted to mention a hash table implementation in C which
is used in the Ruby source code:
just look at st.[hc].

Regards, Pit

You mentioned you were writing a Ruby binding for GDAL. Are you going to
make this publicly available?

Regards,

Matt

Hi Matt,

Yes, the bindings will be part of the GDAL release (and are in CVS now - although what is checked in is slightly out of date). Right now there are a few people working on bindings for languages other than Python - I just picked up the Ruby one since I needed it.

Charlie

Lipper, Matthew wrote:

ยทยทยท

Charlie Savage schrieb:

...
As can be seen in the code below, I have gone down the

hashtable route

with a slight twist - I use a Ruby hash table from C to store these mappings. I did this instead of using a C++ map since I

wanted to the

code to be just C and it was easier then implementing a hash table from scratch in C.
...

I can't say anything about your code, cause I've never used SWIG yet, but it looks like you've done a very nice work.

Ditto.

I just wanted to mention a hash table implementation in C which is used in the Ruby source code: just look at st.[hc].

Regards, Pit

You mentioned you were writing a Ruby binding for GDAL. Are you going to
make this publicly available?

Regards,

Matt