No subject

uunet!homxb.att.com!wilber uunet!homxb.att.com!wilber
Wed Dec 18 14:22:00 PST 1991


Subject: variable length arrays and function definitions

I know I'm jumping into this discussion rather late but what's so bad
about

	int foo(double a[n], int n) { ... }   ?

I know that it's a bit of trouble for the compiler - it has to parse the
entire function header before it can grok the first parameter - but that's
certainly no worse than what C++ compilers have to do when they parse inline
functions that are defined inside a class declaration.

And the above syntax is certainly more natural for a programmer, which ought
to count for something.

Bob Wilber



More information about the Numeric-interest mailing list