Related articles |
---|
[3 earlier articles] |
Re: silly question: prefix vs postfix ops gah@ugcs.caltech.edu (glen herrmannsfeldt) (2008-03-03) |
Re: silly question: prefix vs postfix ops haberg_20080207@math.su.se (Hans Aberg) (2008-03-03) |
Re: silly question: prefix vs postfix ops marcov@stack.nl (Marco van de Voort) (2008-03-03) |
Re: silly question: prefix vs postfix ops gah@ugcs.caltech.edu (glen herrmannsfeldt) (2008-03-04) |
Re: silly question: prefix vs postfix ops dot@dotat.at (Tony Finch) (2008-03-04) |
Re: silly question: prefix vs postfix ops rpboland@gmail.com (Ralph Boland) (2008-03-04) |
Re: silly question: prefix vs postfix ops alexc@TheWorld.com (Alex Colvin) (2008-03-05) |
Re: silly question: prefix vs postfix ops DrDiettrich1@aol.com (Hans-Peter Diettrich) (2008-03-06) |
From: | Alex Colvin <alexc@TheWorld.com> |
Newsgroups: | comp.compilers |
Date: | Wed, 5 Mar 2008 22:02:05 +0000 (UTC) |
Organization: | The World : www.TheWorld.com : Since 1989 |
References: | 08-03-012 08-03-015 |
Keywords: | syntax, design |
Posted-Date: | 05 Mar 2008 21:05:12 EST |
>Why not, you could have array indexing prefix or infix. In mathematics
>indices are placed before, above, below, inside... where it pleases the
>writer.
For example,
In C*, data-parallel C, parallel data is indexed on the left by virtual
processor number.
[p]n /* parallel n */
Ordinary C arrays are indexed on the right as usual. Parallel arrays can
sport both,
[p]a[i] /* parallel a[i] */
As to whether array indexing is prefix or postfix, remember that in C,
indexing is commutative
a[i] == i[a]
--
mac the naof
Return to the
comp.compilers page.
Search the
comp.compilers archives again.