Quoting Mitchell N Charity off-list:

>C99 requires a single _declarator_ to support 12.  But note C99's
>"Implementations should avoid imposing fixed translation limits
>whenever possible.".

I know about the array-of-arrays factor all too well. (I tend to use the
[x,x] notation when not paying attention). But as a declaration has to
specify how many levels of indirection
(pointer-to-pointer-to-pointer-to.....) we are dealing with,  a limit seemed
possible nonetheless.

In fact Mitchell was kind enough to provide me with a full quote of the
standard, which recites that:

>The  implementation  shall  be  able  to translate and
>       execute at least one program  that  contains  at  least  one
>       instance of every one of the following limits:

and our declarator limit above is one of them. Of course, this is an "AT
LEAST" limit, so.....

</OT>

-Federico


----- Original Message -----
From: "Bill N1VUX" <[EMAIL PROTECTED]>
To: "Steven W. Orr" <[EMAIL PROTECTED]>
Cc: "Federico Lucifredi" <[EMAIL PROTECTED]>; "boston perl mongers"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, November 11, 2003 23:29
Subject: C Arrays [ot] Re: [Boston.pm] Another non-perl html question =)


> > A: 1
> > In C there is no such thing as multidimensional arrays. You can however
> > have an array of an array.
>
> which is intrinsically potentially a ragged array, there's no need for all
> rows to have same number of elements, etc.
>
> > C does support the notation of [x,y] as a
> > shorthand of [x][y]. So the answer to the question that you're really
> > asking is probably "unlimited" in the same way that you can have
pointers
> > to pointers etc or functions which return pointers to functions which
> > return ... etc.
> >
> > Who dares to disagree?
>
> A given implementation may impose a limit on the number of commas
supported
> syntactically, and who knows, there may be a standard. But theoretically,
1
> and as many as you need should both be correct, I like it.
>
> Bill
>

_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to