Amaury Forgeotdarc | 6 Jan 2006 10:57
Favicon

RE: Re: ready for (pre) release candidate

Hello,

I'm trying the latest swig with my application.

With CVS version, I get tons of warnings on each structure when 
kwargs are globally enabled:

	%module t
	%kwargs;
	struct s { int a; };

> swig -python
Warning(314): , '321:self conflicts with a built-in name in python' is a
renaming parameter to _self
Warning(314): , '321:self conflicts with a built-in name in python' is a
renaming parameter to _self

The generated code indeed uses a '_self' kwarg. 
It makes no sense to have named parameters for getters/setters, since
these are not meant to be exposed as functions.

Also, the error message seems a bit odd...

--

-- 
Amaury Forgeot d'Arc
Ubix Development
www.ubitrade.com

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click

Gmane