I've been experimenting with a non-extern cppclass and found behavior that I couldn't find documented anywhere.
For example:
cdef cppclass Xyz:generates (simplified):
struct Xyz {I couldn't able to find any documentation describing what is supported.
I think you're right and it isn't documented anywhere.
To me it's always seemed like a feature that probably shouldn't have been part of Cython. Mostly because it will always be fairly limited compared to just writing the C++ classes, so I don't think it's possible to get something that everyone's happy with without re-implementing C++ completely. So I think the history was that it was added as an experimental feature and never documented. I don't think there's any chance of it being removed now, but personally I don't think the documentation should enthusiastically promote the feature.
If you look in tests/run/cpp_classes_def.pyx in the Cython repo, you can see a bunch of examples - that's probably the best I can recommend.
David
--
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cython-users/65d366d0-5b39-438a-a91e-7da4bca481cbn%40googlegroups.com.
Thanks!
That clears it up. It's also great to hear that it won't be removed. I'll definitely take a look at tests/run/cpp_classes_def.pyx.
Thanks again!