SourceForge.net | 1 Jun 2008 15:51
Picon
Favicon

[ swig-Bugs-1981315 ] Infinite recursion with cross-module inheritance

Bugs item #1981315, was opened at 2008-06-01 15:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1981315&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: python
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Paul E.C. Melis (paulmelis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Infinite recursion with cross-module inheritance

Initial Comment:
Given:
- two modules, mod1 and mod2, meant for wrapping in Python
- mod1 contains a C++ class Base
- mod2 contains a class Derived, which is derived from Base
- directors enabled for both classes
- directors enabled for both modules
- the following C++ code:

class Base
{
public:
(Continue reading)

SourceForge.net | 1 Jun 2008 16:05
Picon
Favicon

[ swig-Bugs-1981315 ] Infinite recursion with cross-module inheritance

Bugs item #1981315, was opened at 2008-06-01 15:51
Message generated for change (Comment added) made by paulmelis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1981315&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: python
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Paul E.C. Melis (paulmelis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Infinite recursion with cross-module inheritance

Initial Comment:
Given:
- two modules, mod1 and mod2, meant for wrapping in Python
- mod1 contains a C++ class Base
- mod2 contains a class Derived, which is derived from Base
- directors enabled for both classes
- directors enabled for both modules
- the following C++ code:

class Base
{
public:
(Continue reading)

SourceForge.net | 1 Jun 2008 20:04
Picon
Favicon

[ swig-Bugs-1981315 ] Infinite recursion with cross-module inheritance

Bugs item #1981315, was opened at 2008-06-01 15:51
Message generated for change (Comment added) made by paulmelis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1981315&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: python
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Paul E.C. Melis (paulmelis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Infinite recursion with cross-module inheritance

Initial Comment:
Given:
- two modules, mod1 and mod2, meant for wrapping in Python
- mod1 contains a C++ class Base
- mod2 contains a class Derived, which is derived from Base
- directors enabled for both classes
- directors enabled for both modules
- the following C++ code:

class Base
{
public:
(Continue reading)

SourceForge.net | 2 Jun 2008 13:43
Picon
Favicon

[ swig-Bugs-1746818 ] Directors bug with virtual protected methods

Bugs item #1746818, was opened at 2007-07-02 22:00
Message generated for change (Comment added) made by wsfulton
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1746818&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: csharp
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Berserker (berserker_r)
Assigned to: William Fulton (wsfulton)
Summary: Directors bug with virtual protected methods

Initial Comment:
// C++ code

%feature("director") Alfa;
class Alfa
{
public:
  Alfa() { }
  virtual ~Alfa() { }

protected:
  virtual void test() { }
(Continue reading)

SourceForge.net | 2 Jun 2008 13:45
Picon
Favicon

[ swig-Bugs-1934369 ] Infinite recursion with director

Bugs item #1934369, was opened at 2008-04-04 12:54
Message generated for change (Comment added) made by wsfulton
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1934369&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: python
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Paul E.C. Melis (paulmelis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Infinite recursion with director

Initial Comment:
The shown testcase (simplified from a real-life occurrence of this problem) shows an infinite recursion
w.r.t. the director generated by SWIG. This is with 1.3.34 and options -python -c++ -modern -O. With SWIG
1.3.29 this case works correctly.

Attached is a .tgz of the files below.

--- t.h --------
#include <cstdio>

class Object
{
(Continue reading)

SourceForge.net | 2 Jun 2008 13:46
Picon
Favicon

[ swig-Bugs-1981315 ] Infinite recursion with cross-module inheritance

Bugs item #1981315, was opened at 2008-06-01 13:51
Message generated for change (Comment added) made by wsfulton
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1981315&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: python
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Paul E.C. Melis (paulmelis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Infinite recursion with cross-module inheritance

Initial Comment:
Given:
- two modules, mod1 and mod2, meant for wrapping in Python
- mod1 contains a C++ class Base
- mod2 contains a class Derived, which is derived from Base
- directors enabled for both classes
- directors enabled for both modules
- the following C++ code:

class Base
{
public:
(Continue reading)

Sean Seefried | 2 Jun 2008 16:24
Picon
Favicon

Problems with OCaml support?

Hi guys,

I started playing around with SWIG yesterday and found it quite  
usable. I really like the way you've designed it and the documentation  
is excellent.
However, I ran into a small snag when I tried to create an interface  
to a file "swig_test.h"

typedef struct a_linked_list *a_linked_list_ptr;

typedef struct a_linked_list {
int this;
a_linked_list_ptr next;
} a_linked_list ;

The interface file "swig_test.i" looked liked this:

%module SwigTestInterface
%{
/* Includes the header in the wrapper code */
#include "swig_test.h"
%}
/* Parse the header file to generate wrappers */
%include "swig_test.h"

This generated SwigTestInterface.ml and SwigTestInterface.mli. But for  
the life of me I just couldn't work out how to access the field "this"  
and "next" of the structure a_linked_list.
I had a look in SwigTestInterface.ml and found that many functions had  
been generated for just this purpose, but when I got down to the  
(Continue reading)

Sean Seefried | 2 Jun 2008 16:29
Picon
Favicon

Apologies

I only sent the last email to this address because swig-users <at> lists.sourceforge.net 
  rejected my emails despite having signed up to mailing list. Don't  
know why.

Sean

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Picon
Favicon

Sponsoring Swig

Hi guys

We are a small OpenSource company in Germany specialised in TYPO3 and due to our close connection to the
OpenSource world we sponsor dozens of successful OpenSource projects that help us in our daily work
and/or are great contributions to the OS world as such. Therefore we have also picked your project as a
possible recipient of sponsorship.

We currently sponsor e.g. PHP, TYPO3, ImageMagick, Horde, DotProject, DokuWiki, Mantis, KDE, RSSOwl,
Serendipity and many more. In general we offer three kinds of sponsorship.

1.         Monthly sponsoring of around 50 to 100 USD
2.         Sponsoring of Rootservers for Mirrors or as webservers.
3.         Redesign of the projects website and delivery as PSD file (e.g. we are currently re-designing PHP.net).

If one of these offers sounds interesting to you, I would be glad to hear from you soon so we can work something
out. All we ask for in return for our sponsorships is a short mentioning somewhere on the page.

Hear from you soon

Kian T. Gould
Geschäftsführer / CEO

AOE media GmbH
Borsigstr. 18
65205 Wiesbaden
Germany  Tel. +49 (0) 6122 58 70 24
Fax. +49 (0) 6122 58 70 99
Mobil: +49 (0) 177 38 191 09

e-Mail: gould <at> aoemedia.de
(Continue reading)

William S Fulton | 2 Jun 2008 22:59
Picon
Favicon
Gravatar

Re: Problems with OCaml support?

Sean Seefried wrote:
> Hi guys,
> 
> I started playing around with SWIG yesterday and found it quite  
> usable. I really like the way you've designed it and the documentation  
> is excellent.
> However, I ran into a small snag when I tried to create an interface  
> to a file "swig_test.h"
> 
> typedef struct a_linked_list *a_linked_list_ptr;
> 
> typedef struct a_linked_list {
> int this;
> a_linked_list_ptr next;
> } a_linked_list ;
> 
> The interface file "swig_test.i" looked liked this:
> 
> %module SwigTestInterface
> %{
> /* Includes the header in the wrapper code */
> #include "swig_test.h"
> %}
> /* Parse the header file to generate wrappers */
> %include "swig_test.h"
> 
> This generated SwigTestInterface.ml and SwigTestInterface.mli. But for  
> the life of me I just couldn't work out how to access the field "this"  
> and "next" of the structure a_linked_list.
> I had a look in SwigTestInterface.ml and found that many functions had  
(Continue reading)


Gmane