[Cython] Status
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Jan 31 08:50:39 EST 2020
On 1/02/20 12:34 am, John Skaller2 wrote:
> Ok, but now the syntax is made very context sensitive.
> To interpret it correctly, you have to know “ob” is not a type.
Yes, Cython mostly follows C declaration syntax, and C also has
this property.
> In C this would not work because there is no default type,
Yes, there is -- the default type in C is int. This is
a valid function definition in C:
f(x) {
}
It's equivalent to
int f(int x) {
}
> And my translator script got fooled, because it assumes
> any single identifier used as a parameter is a type,
Then it's making an incorrect assumption.
--
Greg
More information about the cython-devel
mailing list