[Numpy-discussion] Caution -- // not standard
Paul F Dubois
paul at pfdubois.com
Mon Jul 8 12:38:05 EDT 2002
Thank you for the clarification.
Unfortunately, "my" compiler vendor is the set of all compiler vendors
that users of Numeric have, and we have to restrict ourselves to what
works. I misspoke when I said it was "not standard"; I should have said,
"doesn't work everywhere".
> -----Original Message-----
> From: Andrew P. Lentvorski [mailto:bsder at mail.allcaps.org]
> Sent: Monday, July 08, 2002 12:02 PM
> To: Paul Dubois
> Cc: numpy-discussion at lists.sourceforge.net
> Subject: Re: [Numpy-discussion] Caution -- // not standard
> Actually, // is standard C99 released December 1, 1999 as
> ISO/IEC 9899:1999.
> It also has support for variable length arrays, a complex
> number type and a bunch of *portable* stuff for getting at
> numerical information (limits, floating-point environment)
> rather than nasty compiler specific hacks. ( See:
> http://std.dkuug.dk/JTC1/SC22/WG14/www/newinc9> x.htm )
> of these extensions are specifically for the
> numerical community.
> I would recommend taking up the issue of non-standards
> compliance with your compiler vendor.
> On 8 Jul 2002, Paul Dubois wrote:
> > I have run into several cases of this on different open-source
> > projects, the latest being an incorrect change in Numeric's
> > arrayobject.c: the use of // to start a comment. Many
> contributors who
> > work only with Linux have come to believe that this works
> with other C
> > compilers, which is not true. This construct comes from C++. Please
> > avoid this construct when contributing changes or patches
> to Numeric.
More information about the NumPy-Discussion