added the ruby runtime case and more comments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8cc5b25f18
commit
575a54adfd
3 changed files with 52 additions and 3 deletions
|
|
@ -1,4 +1,15 @@
|
|||
%module virtual_poly
|
||||
%module(directors="1") virtual_poly
|
||||
|
||||
//
|
||||
// Check this example with directors wherever is possible.
|
||||
// It seems to be a good test since it breaks ruby at least.
|
||||
// python works fine with and without directors
|
||||
// In theory, Java should starts working with directors,
|
||||
// but this is not tested yet (my Java installation is broken).
|
||||
//
|
||||
//%feature("director");
|
||||
|
||||
%newobject *::copy();
|
||||
|
||||
|
||||
%inline %{
|
||||
|
|
@ -6,6 +17,12 @@
|
|||
{
|
||||
virtual ~NNumber() {};
|
||||
virtual NNumber* copy() const = 0;
|
||||
|
||||
NNumber* nnumber()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue