Re: [C++-sig] #ifdef __cplusplus?

2009-01-02 Thread Alexander Belopolsky
First, by copying c++-sig, let me invite C++ experts to comment on this thread and the tracker issue: http://mail.python.org/pipermail/python-dev/2009-January/084685.html http://bugs.python.org/issue4805 My patch highlights several issues: 1. (OP's issue.) Do we need #ifdef __cplusplus wrapper

Re: [C++-sig] [Python-Dev] #ifdef __cplusplus?

2009-01-02 Thread Matthieu Brucher
Hi, 2009/1/2 Alexander Belopolsky : > First, by copying c++-sig, let me invite C++ experts to comment on > this thread and the tracker issue: > > http://mail.python.org/pipermail/python-dev/2009-January/084685.html > http://bugs.python.org/issue4805 > > My patch highlights several issues: > > 1. (

Re: [C++-sig] [Python-Dev] #ifdef __cplusplus?

2009-01-02 Thread David Cournapeau
Hi Matthis, On Sat, Jan 3, 2009 at 3:31 AM, Matthieu Brucher wrote: > > When I learnt C, I was always told to explicitely cast. Maybe your professor was used to old C :) It is discouraged practice to cast malloc - the only rationale I can think of nowadays is when you have to compile the sourc

Re: [C++-sig] [Python-Dev] #ifdef __cplusplus?

2009-01-02 Thread Matthieu Brucher
>> When I learnt C, I was always told to explicitely cast. > > Maybe your professor was used to old C :) That's more than likely :D Matthieu -- Information System Engineer, Ph.D. Website: http://matthieu-brucher.developpez.com/ Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog