[Pyrex] Support for qualifiers

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 26 01:25:18 CET 2008


Jelmer Vernooij wrote:
> I figured it would simply be a matter of tracking whether
> something is const. Would there be more required than that?

The type compatibility rules all become more complicated.
For instance, you can assign a char * to a const char *,
but not the other way around.

The parsing gets more complicated as well. I'm not even
confident I know all the places you're allowed to insert
a 'const' into a C declaration, and what they all mean.

It's all doable, but it will require some careful thought.

-- 
Greg




More information about the Pyrex mailing list