On 5/15/08, Greg Ewing <[EMAIL PROTECTED]> wrote:
> Pyrex will support const, I've made that decision now.
> And it won't be primitive, it'll be full and correct
> support.
Just fantastic! But when you see full and correct, do you mean that
Pyrex will match the behavior of a C/C++ compiler like gcc in the
example above (try it if you never coded something like this)
int main()
{
int a[10];
const int * p = a;
int * const q = a;
const int * const r = a;
p[0]=1;
q[0]=1;
r[0]=1;
p=0;
q=0;
r=0;
return 0;
}
Well, regarding the above code, your comment about the tyranny of
'const' make more sense :-)
I do not really ask you for supporting the 'int* const' form, but the
'const int*'. However, the first form can still appear when trying to
wrap some C++ API :-(
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev