From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,25b9eb5c3a89bced X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news.glorb.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed01.chello.at!newsfeed02.chello.at!news.hispeed.ch.POSTED!not-for-mail Message-Id: <11708614.Atp6ZMqtRP@linux1.krischik.com> From: Martin Krischik Subject: Re: where exactly c++,c fail and Ada gets thru' Newsgroups: comp.lang.ada Date: Wed, 26 Apr 2006 19:48:42 +0200 References: <1145852356.559455.222600@i39g2000cwa.googlegroups.com> <1145855124.720029.35280@t31g2000cwb.googlegroups.com> User-Agent: KNode/0.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@hispeed.ch Organization: hispeed.ch NNTP-Posting-Host: 80.218.119.160 (80.218.119.160) NNTP-Posting-Date: Wed, 26 Apr 2006 20:45:07 +0200 X-Trace: 8ce2c444fbfb3f57fd20508251 Xref: g2news2.google.com comp.lang.ada:3938 Date: 2006-04-26T19:48:42+02:00 List-Id: Keith Thompson wrote: > In fact, it's not possible in C to pass an array directly as a > function parameter. Actually C99 can pass arrays. The declaration looks something like this: F (int A_Lenght, double A [A_Lenght]) or G (double A [static 10]) or even H (double A [*]) But then: AFAIK: there is only one compiler which prides itself with actually implementing C99 arrays and one compiler which at least tries and and has the failures on it's bug list. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com