[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Correctly handling the deprecation of rb_enable_super

Nathaniel Talbott

9/12/2003 9:43:00 AM

nobu.nokada@softhome.net [mailto:nobu.nokada@softhome.net] wrote:

> #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
> rb_enable_super(klass, funcname);
> #endif
>
> This wouldn't work with transitional versions from 2003/02/09
> until 2003/07/16, however, they are deprecated.

Thanks, Nobu! Worked like a charm.


Nathaniel

<:((><


2 Answers

nobu.nokada

9/12/2003 9:51:00 AM

0

Hi,

At Fri, 12 Sep 2003 18:43:25 +0900,
Nathaniel Talbott wrote:
> > #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
> > rb_enable_super(klass, funcname);
> > #endif
> >
> > This wouldn''t work with transitional versions from 2003/02/09
> > until 2003/07/16, however, they are deprecated.
>
> Thanks, Nobu! Worked like a charm.

Now rb_{enable,disable}_super() are dummy macros, so you don''t
have to change the library''s source. Just update ruby source
and recompile with it.

--
Nobu Nakada

ts

9/12/2003 10:01:00 AM

0

>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:

n> Now rb_{enable,disable}_super() are dummy macros, so you don''t
n> have to change the library''s source. Just update ruby source
n> and recompile with it.

Well, some persons are trying to make their libraries work even with
1.8.0, which is released.

p.s. : this problem is well known with bdb ...
Good Luck ...


Guy Decoux