best "void" return of a member function

Tim Rowe digitig at gmail.com
Wed Apr 22 05:23:36 EDT 2009


2009/4/20 Stefan Behnel <stefan_ml at behnel.de>:

> That's the typical SWIG problem: you can generate wrappers for tons of
> languages, mostly automatically. But none of them will feel 'native' to the
> users of each of the target languages (well, possibly excluding C and Java here).

On the other hand, a thin wrapper around a library will let the user
leverage existing library documentation, so the choice is not a
complete no-brainer.

One approach (used in the Ada community for it's MS Windows bindings,
for instance) is to have a thin wrapper and build the thick wrappers
on top of that. Most Ada MS Windows thick wrappers (ie, ones that feel
natural to Ada) are built on top of Win32Ada, which stays as close to
the underlying C interface as it can.

-- 
Tim Rowe



More information about the Python-list mailing list