Robert Bradshaw, 22.11.2009 04:49:
> On Nov 21, 2009, at 6:39 PM, Stefan Behnel wrote:
> 
>> Antoine Pitrou, 21.11.2009 12:05:
>>> Christian Heimes <li...@...> writes:
>>>> Computed gotos are only available with some compilers. As far as I
>>>> remember they are supported by recent versions of GCC (IIRC 3.x and
>>>> newer), Intel's ICC and Sun's C compiler. MSVC doesn't have it for  
>>>> sure
>>>> and will probably never support, it since Microsoft is focusing on  
>>>> C#
>>>> rather than extending its C/C++ compiler.
>>>>
>>>> Antoine Pitrou has lead the implementation in Python 3.1. He might  
>>>> know
>>>> more details. I've included him in CC.
>>> I don't know anything more than what you said :)
>>> Basically, it's a non-standard C feature, so you shouldn't rely on  
>>> it being
>>> available everywhere and everytime.
>> Just to be sure, not only the computed goto itself is a non-standard
>> feature, but also taking the address of a label using "&&", right?
> 
> Can't imagine why you'd want/need a label if you couldn't use it...
> 
>> If the latter was portable, it would at least simplify the generated  
>> code
>> as we could switch on label addresses...
> 
> You can only switch on integral values, and switching on (extremely)  
> non-consecutive values yields much less efficient code.

Ok, I updated the CEP accordingly.

http://wiki.cython.org/enhancements/generators#Implementinggeneratorfunctions

Stefan

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

Reply via email to