Why are @, `, and $ not used in C?
Anthony Scian
afscian at violet.waterloo.edu
Tue Sep 19 13:07:58 AEST 1989
In article <509.nlhp3 at oracle.nl> bengsig at oracle.nl (Bjorn Engsig) writes:
>I know that $ is often allowed in identifiers so that is ruled out, but
>couldn't @ and/or ` have been used for something useful.
One compiler used the '@' sign to give a small data model program
on the 8086 an extra 64K. The '@' represented an indirection
based off the ES register instead of DS. I don't recall if '@'
was used instead of '*' like:
if( p ) {
(@p).field = @q;
}
or Pascal-ish like:
if( p ) {
p at .field = q@;
}
It was a clever trick for getting an extra 64K before
the days of memory models.
--
Anthony
//// Anthony Scian afscian at violet.uwaterloo.ca afscian at violet.waterloo.edu ////
"I can't believe the news today, I can't close my eyes and make it go away" -U2
More information about the Comp.lang.c
mailing list