Issue with example (Examples/go/callback)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Issue with example (Examples/go/callback)

Luis C
Hi All,

Im trying to understand one of the examples, to be more precise the example
swig/Examples/go/callback, and when I'm compile the code (make) the output is exactly the same:

env  ./runme
Adding and calling a normal C++ callback
----------------------------------------
Callback::run()
Callback::~Callback()

Adding and calling a Go callback
--------------------------------
Callback::run()
Callback::~Callback()

Go exit

and there is a callback on the file (gocallback.go) that is not called. I was expecting the output "GoCallback.Run" on the example. I'm missing something? is the go method Run, not called?

Im using swig 3.0 and go 1.6

Regards,
Luis

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Swig-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swig-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with example (Examples/go/callback)

William S Fulton


On 20 June 2017 at 11:31, Luis C <[hidden email]> wrote:
Hi All,

Im trying to understand one of the examples, to be more precise the example
swig/Examples/go/callback, and when I'm compile the code (make) the output is exactly the same:

env  ./runme
Adding and calling a normal C++ callback
----------------------------------------
Callback::run()
Callback::~Callback()

Adding and calling a Go callback
--------------------------------
Callback::run()
Callback::~Callback()

Go exit

and there is a callback on the file (gocallback.go) that is not called. I was expecting the output "GoCallback.Run" on the example. I'm missing something? is the go method Run, not called?

Im using swig 3.0 and go 1.6


William


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Swig-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swig-user
Loading...