
Printing in format statments using e/g format
Quote:
>The main problem is that it can change the semantics of unsuspecting
>library routines, up to and including blowing them out of the water.
>Hooking this into where floats are converted to strings would only
>make this worse.
>$[ is deprecated for similarly insidious reasons.
Ah. Yes, I suppose it might. What if a new version were given lexical
scope? I assume separate files are different lexical scopes a la C
statics, so most library routines could be protected.
I remember now the proposal that $[ could become a compiler
directive. The same sort of arguments hold, I imagine. Did that
get blown out the water because of backward compatibility problems?
And if so, would a spangly new pragma help?
Anthony
--
AJR Heading, Defence Research Agency, St. Andrews Road, Great Malvern, UK