Topic: f( X a[] ) => a is X* const?
Author: horstman@sjsumcs.sjsu.edu (Cay Horstmann)
Date: Sat, 24 Apr 1993 22:23:44 GMT Raw View
The subject header says it all: I noted that the Borland compiler treats
array arguments as unmodifyable pointers, i.e.
f( X a[] ) <=> f( X* const a )
f( const X a[] ) <=> f( const X* const a )
I'm all for it--no more *a++ --but is this really the law of the land in
C++? It clearly deviates from ANSI C.
Clarifications on the legality, preferably by email, would be greatly
appreciated.
Thanks!
Cay