[Cython] new idea for typedef integrals
Robert Bradshaw
robertwb at math.washington.edu
Fri Jul 10 08:11:35 CEST 2009
On Jul 9, 2009, at 5:17 PM, Greg Ewing wrote:
> Robert Bradshaw wrote:
>
>> I'm not against the unranked/partially ordered types--it's a good
>> one, but think it will be burdensome (as well as hugely backwards
>> incompatible) to make it the default.
>
> I'm not sure what you mean by "make it the default".
> The proposal *doesn't* make unrankedness the default --
> you have to ask for it.
>
> However, it sounds like you *do* want it to be the
> default, i.e. no rank is assumed unless you explicitly
> say the type is exact.
Sorry, I worded things poorly... What I didn't want to be default is
having extern ctypedef sizes checked at runtime, raising an error if
they didn't match.
> That would be strange, IMO. Built-in type names such as
> "int" have a precise meaning to the C compiler, and
> it's reasonable to assume that if you say "int" in
> Cython code, it will mean the same thing.
>
> I suppose external typedefs could be treated differently
> in this respect, but that would be somewhat odd as well.
Yes, I'm only talking about extern types, because those may not even
be decided until C compile time.
- Robert
More information about the Cython-dev
mailing list