[Pyrex] Re: Pyrex and C++
Greg Ewing
greg at cosc.canterbury.ac.nz
Tue Nov 18 02:01:33 CET 2003
Mike Rovner <mike at nospam.com>:
> There is nothing (and I doubt will ever be) like that in python,
> so what are we talking about?
Pyrex currently generates code which casts lvalues, e.g.
MyExtensionType *p;
(PyObject *)p = some_pyobject_expr;
which is apparently illegal in C++.
> Ah, compiling pyrex output with c++ - AFAIK no c++ compiler is going
> to drop c mode out?
If only that were true! But unfortunately C++ is not quite a
superset of C...
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list