C's syntax (was Re: Python Formatted C Converter (PfCC))

Rainer Deyke root at rainerdeyke.com
Mon Oct 23 22:13:13 EDT 2000


"Samuel A. Falvo II" <kc5tja at garnet.armored.net> wrote in message
news:slrn8v9eph.qte.kc5tja at garnet.armored.net...
> On Mon, 23 Oct 2000 20:40:19 GMT, Rainer Deyke wrote:
> >It gets worse.
> >
> >int (*a)[5], *(b[5]);
> >
> >It looks like 'a' is an array of pointers and 'b' is a pointer to an
array,
> >but the opposite is the case.
>
> I don't know -- that makes perfect sense to me.  Order of operations and
all
> that.  :)

I like the C++ template style:

pointer<array<int> > a;
array<pointer<int> > b;

'int (*a)[5]' seems inside out to me.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list