On Nov 30, 2009, at 10:48 PM, Stefan Behnel wrote:

>
> Robert Bradshaw, 01.12.2009 04:36:
>> one could write
>>
>> def foo(int* data):
>>    ...
>>
>> and data would be "extracted" via the buffer interface. That could  
>> get
>> messy with char*.
>
> Less messy than for int*, for sure. At least, char* has a somewhat  
> well
> defined termination character '\0'. How would you know how many  
> elements an
> int* parameter would refer to?

You wouldn't, which is the problem that I was worried about. I think I  
misinterpreted what you were trying to say here, so just ignore it.

- Robert

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to