In fact, it is not C++ at all, it&#39;s C99 (variable lenth arrays, only exist for C99 compilers, not C89 ones like Visual Studio for instance).<br><br>Matthieu<br><br><div><span class="gmail_quote">2007/12/3, Greg Ewing &lt;
<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><a href="mailto:moreilcon@gmail.com">
moreilcon@gmail.com</a> wrote:<br>&gt; /* C code, works well */<br>&gt; void<br>&gt; foo(int size)<br>&gt; {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; int array[size];<br>&gt; }<br><br>Strictly speaking this is a C++ thing and isn&#39;t<br>standard C:
<br><br>% gcc -c -ansi -pedantic foo.c<br>foo.c: In function `foo&#39;:<br>foo.c:2: warning: ISO C90 forbids variable-size array `array&#39;<br><br>Pyrex only generates standard C code, so it doesn&#39;t<br>support this.<br>
<br>--<br>Greg<br><br>_______________________________________________<br>Pyrex mailing list<br><a href="mailto:Pyrex@lists.copyleft.no">Pyrex@lists.copyleft.no</a><br><a href="http://lists.copyleft.no/mailman/listinfo/pyrex">
http://lists.copyleft.no/mailman/listinfo/pyrex</a><br></blockquote></div><br><br clear="all"><br>-- <br>French PhD student<br>Website : <a href="http://miles.developpez.com/">http://miles.developpez.com/</a><br>Blogs : <a href="http://matt.eifelle.com">
http://matt.eifelle.com</a> and <a href="http://blog.developpez.com/?blog=92">http://blog.developpez.com/?blog=92</a><br>LinkedIn : <a href="http://www.linkedin.com/in/matthieubrucher">http://www.linkedin.com/in/matthieubrucher
</a>