"Noalias" warning and questions
Doug Gwyn
gwyn at brl-smoke.ARPA
Fri Feb 12 15:46:11 AEST 1988
In article <8012 at elsie.UUCP> ado at elsie.UUCP (Arthur David Olson) writes:
>Since many standard library functions
>have prototypes that declare arguments to be "noalias", you'll need to
>ensure that there's no such overlap when you call them.
This is not new; in earlier working drafts this injunction was given
in English near the beginning of Section 4; now it is expressed more
directly in the function interface definitions, using "noalias".
The one hold-out is memmove(), which explicitly DOES permit overlap.
If "noalias" should disappear (a distinct possibility!), we would
have to put back the English injunction against overlapping *arguments.
As to your specific questions, I think the fair thing is to
acknowledge that there are some real problems with the whole
approach. I don't know how thwy will be resolved. Certainly it
must be possible to do obviously valid things with these library
functions, so if the current specification imposes silly
constraints then it will have to be fixed.
More information about the Comp.lang.c
mailing list