Dag Sverre Seljebotn wrote: > 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;"
Should be "(*this).get(key) = value;". And we would then predefine e.g. __setitem__ as "(*this)[key] = value;". -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
