"for" loops in C ...

Richard A. O'Keefe ok at quintus.uucp
Tue Nov 8 12:40:22 AEST 1988


In article <867 at cernvax.UUCP> hjm at cernvax.UUCP (Hubert Matthews) writes:
>I personally, IMHO, would be happy with a[next] for structure access or
>a.i for array access.  Isn't it all really the same and just a matter
>of conditioning?  As I said, it's not obvious how strong typing would
>work in such a language, but it would eliminate one more thing for the
>compiler writers to have to do *and get right*. :-)

In POP, arg.fn and fn(arg) are merely syntactic variants, so one can
write	record.field -> array(subscript);
or	field(record) -> subscript.array;
and it's all the same thing.  How would string typing work?  Just like
it always did: the information comes from the (bindings of) the
identifiers, not the punctuation marks.



More information about the Comp.lang.c mailing list