noalias, again (was extern const)

Doug Gwyn gwyn at brl-smoke.ARPA
Sun Mar 27 00:38:09 AEST 1988


In article <6986 at ki4pv.uucp> tanner at ki4pv.uucp (Dr. T. Andrews) writes:
>Breaking existing, useful code is hard to justify under the banner of
>existing practice.

Your (Chris's) example does not illustrate this, but merely reflects
your misunderstanding of what is guaranteed by existing practice.
Use of strcpy() between overlapping source and destination arrays has
always been an implementation-dependent gamble.  The dpANS provides
memmove() as a function guaranteed to be safe for such use, because
existing str*() and mem*() functions were unsafe for this usage.
Instead of griping about imaginary breakage of an already broken
situation, you might be grateful that cognizance was taken of the
problem and a solution provided.

>DMR, where are you when we need you?

He's working with X3J11 committee members to help get the intended
functionality correctly specified in the final ANSI C standard.



More information about the Comp.lang.c mailing list