[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: python-bindings-improvements review

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-08-17 21:26:43 CEST

David James wrote:

>On 8/16/05, Branko Čibej <brane@xbc.nu> wrote:
>
>
>>Well, if we have
>>
>> gen_base --> gen_swig
>>
>>and some ifs in gen_swig, then fine. But
>>
>> gen_base --> gen_make --> gen_swig
>>
>>looks like a lie to me.
>>
>>
>gen_base is an abstract base class, so gen_swig needs to define
>"_extension_map" in order for it to be instantiated with gen_base as a
>parent. Right now, we can fulfill this requirement by inheriting from
>"gen_make", which defines "_extension_map". This is a temporary
>workaround until we refactor the generator classes.
>
>
Is that the only reason? Look at gen_win.py:GeneratorBase -- just copy
that to gen_swig.py, possibly changing the extensions to empty strings
to avoid confusion, and you're done.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 17 21:30:25 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.