Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Dinamic array without malloc - Can be done? Date: Sun, 15 Jan 2017 21:02:23 -0800 Organization: None to speak of Lines: 23 Message-ID: References: <863e4550-027a-4d32-b5df-e34f2c7b4439@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="0a2d73b4260c7d84c3fe58a86676df00"; logging-data="25453"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19x6lKzpRLAfmySanqHJoS+" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:CzH/x6KZUQiXx1emm7kDdbpHABM= sha1:D34U9t+3mzg/haRcB5RC60WaKyk= Xref: csiph.com comp.lang.c:101917 Tim Rentsch writes: > Keith Thompson writes: >> "James R. Kuyper" writes: >> [...] >>> What this all means is that if the code you give above won't compile, >>> you're probably either using a C90 compiler, or a C2011 compiler that >>> has __STDC_NO_VLA__ pre#defined to a value of 1. >> >> Are there any such compilers? > > A C11 implementation that supports VLA's could provide a compiler > option that would disable them and define __STDC_NO_VLA__ to 1. > Such an option might even be useful, to check a non-VLA version > of C11 code, or to comply with an external requirement that VLA's > not be used. Yes, but that doesn't answer my question. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"