Re: [Cython] [cython-users] C++: how to handle failures of 'new'?

2012-07-08 Thread Robert Bradshaw
On Fri, Jul 6, 2012 at 2:33 AM, mark florisson wrote: > On 6 July 2012 03:34, Dag Sverre Seljebotn wrote: >> >> >> mark florisson wrote: >> >>>On 5 July 2012 21:46, Dag Sverre Seljebotn >>>wrote: mark florisson wrote: >On 3 July 2012 20:15, Robert Bradshaw wrote: >

Re: [Cython] [cython-users] C++: how to handle failures of 'new'?

2012-07-08 Thread mark florisson
On 8 July 2012 08:59, Robert Bradshaw wrote: > On Fri, Jul 6, 2012 at 2:33 AM, mark florisson > wrote: >> On 6 July 2012 03:34, Dag Sverre Seljebotn >> wrote: >>> >>> >>> mark florisson wrote: >>> On 5 July 2012 21:46, Dag Sverre Seljebotn wrote: > > > mark florisson wrot

Re: [Cython] [cython-users] C++: how to handle failures of 'new'?

2012-07-08 Thread Stefan Behnel
mark florisson, 08.07.2012 11:34: > On 8 July 2012 08:59, Robert Bradshaw wrote: >> On Fri, Jul 6, 2012 at 2:33 AM, mark florisson wrote: >>> On 6 July 2012 03:34, Dag Sverre Seljebotn wrote: I'm not sure if I like C++ exceptions internally in Cython myself. It would mean that C-compiled

[Cython] errors in C++ tests

2012-07-08 Thread Stefan Behnel
Hi, I'm seeing C++ compiler errors errors in the C++ tests. https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests/BACKEND=cpp,PYVERSION=py3k/491/testReport/ """ cpp_operators.cpp: In function ‘void __Pyx_CppExn2PyErr()’: cpp_operators.cpp:442: error: expected unqualified-id before

Re: [Cython] [cython-users] C++: how to handle failures of 'new'?

2012-07-08 Thread mark florisson
On 8 July 2012 11:17, Stefan Behnel wrote: > mark florisson, 08.07.2012 11:34: >> On 8 July 2012 08:59, Robert Bradshaw wrote: >>> On Fri, Jul 6, 2012 at 2:33 AM, mark florisson wrote: On 6 July 2012 03:34, Dag Sverre Seljebotn wrote: > I'm not sure if I like C++ exceptions internally in

Re: [Cython] errors in C++ tests

2012-07-08 Thread Lars Buitinck
2012/7/8 Stefan Behnel : > """ > cpp_operators.cpp: In function ‘void __Pyx_CppExn2PyErr()’: > cpp_operators.cpp:442: error: expected unqualified-id before ‘&’ token > cpp_operators.cpp:442: error: expected `)' before ‘&’ token > """ > > The failing code line is this: > > """ > } catch (const std

Re: [Cython] errors in C++ tests

2012-07-08 Thread Stefan Behnel
Lars Buitinck, 08.07.2012 20:38: > 2012/7/8 Stefan Behnel: >> """ >> cpp_operators.cpp: In function ‘void __Pyx_CppExn2PyErr()’: >> cpp_operators.cpp:442: error: expected unqualified-id before ‘&’ token >> cpp_operators.cpp:442: error: expected `)' before ‘&’ token >> """ >> >> The failing code lin

Re: [Cython] errors in C++ tests

2012-07-08 Thread Stefan Behnel
Stefan Behnel, 08.07.2012 20:54: > Lars Buitinck, 08.07.2012 20:38: >> 2012/7/8 Stefan Behnel: >>> """ >>> cpp_operators.cpp: In function ‘void __Pyx_CppExn2PyErr()’: >>> cpp_operators.cpp:442: error: expected unqualified-id before ‘&’ token >>> cpp_operators.cpp:442: error: expected `)' before ‘&’

Re: [Cython] errors in C++ tests

2012-07-08 Thread Lars Buitinck
2012/7/8 Stefan Behnel : > ... and there also were some more headers missing, so basically, this > feature never worked. Great. Here's the complete implementation with the > four header files that I had to add at the top: I'm pretty sure that at some point, it worked. I implemented this in 6291a2

Re: [Cython] errors in C++ tests

2012-07-08 Thread Stefan Behnel
Lars Buitinck, 08.07.2012 22:24: > 2012/7/8 Stefan Behnel: >> ... and there also were some more headers missing, so basically, this >> feature never worked. Great. Here's the complete implementation with the >> four header files that I had to add at the top: > > I'm pretty sure that at some point,

Re: [Cython] errors in C++ tests

2012-07-08 Thread Lars Buitinck
2012/7/8 Stefan Behnel : > Any reason why the env.add_include_file() calls would be better than the > header inclusion that I implemented right before the function? It's inside > of the #ifndef block now. After all, they are only needed by that function, > and when users override it by redefining t