Stefan Behnel wrote:
> Hi,
> 
> This is (again) sort of an in-between C and Python question. "cdef" enters C
> space, where block-scoping makes sense. However, we'd have to resolve all
> sorts of weird semantic nonsense, such as:
> 
>     cdef object i
>     for i in range(10):
>         cdef long i = i
>         ...
> 
> I don't feel like bothering with that...

I'd just point out that Stroustrup added "define variables anywhere" 
because there are times that constructors need values that are computed 
during the block.  If we're going to support C++, we may have to support 
that.

Best,
Martin
_______________________________________________
Cython-dev mailing list
Cython-dev@codespeak.net
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to