Hi,
In <4440B54A.3060509@ukf.net>
"[SWIG-All languages] Can the bindings use "#ifdef SWIG<LANG>" instead of "%typemap(<lang>, ...)"" on Sat, 15 Apr 2006 09:56:42 +0100,
Max Bowsher <maxb1@ukf.net> wrote:
> > Since SWIG 1.3.29,
> >
> > %typemap(ruby, ...) ... { ... }
> >
> > is deprecated. So SWIG 1.3.29 prints warning message:
> >
> > Warning(124): Specifying the language name in %typemap is deprecated
> > - use #ifdef SWIG<LANG> instead.
> >
> >
> > I want the Ruby bindings to use
> >
> > #ifdef SWIGRUBY
> > %typemap(...) ... { ... }
> > #endif
> >
> > style instead of
> >
> > %typemap(ruby, ...) ... { ... }
> >
> >
> > Can I change current style?
>
> This is a common issue for all languages.
>
> I dislike the changed style because it is unnecessarily more verbose.
> I've had some conversations on swig-devel trying to get the deprecation
> reversed. I've not made much progress convincing the SWIG developers.
>
> We have two options, as I see it:
>
> 1) Put up with the increased unhelpful verbosity of replacing:
>
> %typemap(python, ...) ...
> %typemap(perl5, ...) ...
> %typemap(ruby, ...) ...
>
> with:
>
> #if defined(SWIGPYTHON)
> %typemap(...) ...
> #elif defined(SWIGPERL)
> %typemap(...) ...
> #elif defined(SWIGRUBY)
> %typemap(...) ...
> #endif
>
> 2) Decide that we find the deprecated syntax useful, and send an email
> endorsed by group consensus, and signed "The Subversion Project" to
> the SWIG developers, requesting the deprecated feature be
> undeprecated. Have every Subversion developer in favour reply to the
> initial posting to swig-devel, affirming their agreement.
>
> So, your thoughts?
Either of the options are acceptable. I want to hear other
thoughts of other SWIG related committers.
Thanks,
--
kou
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 21 01:06:55 2006