Re: [Numpy-discussion] numpy and C99

2009-10-23 Thread David Cournapeau
On Fri, Oct 23, 2009 at 11:41 PM, Sturla Molden wrote: > Except for automatic arrays, they do support some of the more important > parts of C99 as extensions to C89: > > inline functions > restrict qualifier > for (int i=0; i<; i++) No, it doesn't. The above only works in C++ mode, not in C mode

Re: [Numpy-discussion] numpy and C99

2009-10-23 Thread Gael Varoquaux
On Fri, Oct 23, 2009 at 09:47:58AM -0600, Charles R Harris wrote: >However, I think some code, say loops.c.src, looks better in C than it >would in cython. C is a rather nice language for that sort of thing. OTOH, >the ufunc_object.c code might look better in cython. In general, I think

Re: [Numpy-discussion] numpy and C99

2009-10-23 Thread Charles R Harris
On Fri, Oct 23, 2009 at 8:41 AM, Sturla Molden wrote: > Dag Sverre Seljebotn skrev: > > > > > Microsoft's compilers don't support C99 (or, at least, versions that > > still has to be used doesn't). > > > > > Except for automatic arrays, they do support some of the more important > parts of C99 as

Re: [Numpy-discussion] numpy and C99

2009-10-23 Thread Sturla Molden
Dag Sverre Seljebotn skrev: > Microsoft's compilers don't support C99 (or, at least, versions that > still has to be used doesn't). > > Except for automatic arrays, they do support some of the more important parts of C99 as extensions to C89: inline functions restrict qualifier for (int i

Re: [Numpy-discussion] numpy and C99

2009-10-23 Thread Charles R Harris
On Fri, Oct 23, 2009 at 7:48 AM, Darren Dale wrote: > On Fri, Oct 23, 2009 at 9:29 AM, Pauli Virtanen > > > wrote: > > Fri, 23 Oct 2009 09:21:17 -0400, Darren Dale wrote: > >> Can we use features of C99 in numpy? For example, can we use "//" style > >> comments, and C99 for statements "for (int

Re: [Numpy-discussion] numpy and C99

2009-10-23 Thread David Cournapeau
On Fri, Oct 23, 2009 at 10:21 PM, Darren Dale wrote: > Can we use features of C99 in numpy? For example, can we use "//" > style comments, and C99 for statements "for (int i=0, ...) "? No, and most likely never will. Even Visual Studio 2010 does not handle basic C99. David __

Re: [Numpy-discussion] numpy and C99

2009-10-23 Thread Dag Sverre Seljebotn
Darren Dale wrote: > On Fri, Oct 23, 2009 at 9:29 AM, Pauli Virtanen wrote: > >> Fri, 23 Oct 2009 09:21:17 -0400, Darren Dale wrote: >> >>> Can we use features of C99 in numpy? For example, can we use "//" style >>> comments, and C99 for statements "for (int i=0, ...) "? >>> >> It w

Re: [Numpy-discussion] numpy and C99

2009-10-23 Thread Darren Dale
On Fri, Oct 23, 2009 at 9:29 AM, Pauli Virtanen wrote: > Fri, 23 Oct 2009 09:21:17 -0400, Darren Dale wrote: >> Can we use features of C99 in numpy? For example, can we use "//" style >> comments, and C99 for statements "for (int i=0, ...) "? > > It would be much easier if we could, but so far we

Re: [Numpy-discussion] numpy and C99

2009-10-23 Thread Pauli Virtanen
Fri, 23 Oct 2009 09:21:17 -0400, Darren Dale wrote: > Can we use features of C99 in numpy? For example, can we use "//" style > comments, and C99 for statements "for (int i=0, ...) "? It would be much easier if we could, but so far we have strived for C89 compliance. So I guess the answer is "no"

[Numpy-discussion] numpy and C99

2009-10-23 Thread Darren Dale
Can we use features of C99 in numpy? For example, can we use "//" style comments, and C99 for statements "for (int i=0, ...) "? Darren ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion