Re: SWIG/Euphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message

I wrote:

> If 'delete' is a legitimate way to destroy C++ objects,
> then everything is cool.

According to the O'Reilly 'Core C++' book at my local Tower Books, 'delete'
is the proper keyword for destroying objects. So if you include the method:

   ~Class();

for any given class, SWIG will generate the wrapper:

   delete_Class( atom self )

at the Euphoria level, which will ultimately call

  delete self;

at the C++ level. I hope that clears things up!

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu