Dag Sverre Seljebotn wrote:
> All of these can be relatively easily handled if we have a philosophy
> where we make it easy to wrap "sane" code but don't support the whole
> C++ set, which seem to imply (B).
To be concrete, I think it is better to allow
cdef extern "C++":
class MyClass:
double get(int key)
void set(int key, double value) "(*this)(key) = value;"
where one gets help for conveniently defining a new "set" method in
Cython (which would in this case not exist in C++), and where one has to
write some C++ template (macro) code in a string, than to extend Cython
to allow
obj.get(3) = 2
--
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev