This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Newb question about code style
- From: Bernd Jendrissek <berndj at prism dot co dot za>
- To: Dave Korn <dk at artimi dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 17 Mar 2004 17:13:24 +0200
- Subject: Re: Newb question about code style
- References: <NUTMEGNIPukg3nOpj5300000179@NUTMEG.CAM.ARTIMI.COM>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Mar 17, 2004 at 02:51:04PM +0200, Dave Korn wrote:
> >(Of course Knuth would
> > question why have a character code for a character with no glyph.)
>
> GOK what he'd make of Ctrl-G!
A character whose glyph has such a strongly modulated spatial spectrum
that its rendition on a CRT display causes nonlinear electron
excitations in the screen grid, that the beats are discriminated and
become audible. Everyone knows, of course, that ^G is silent on laptops
and other computers with those fancy flat-panel displays.
^H would be an anti-character, then, but with equal spin, so it needs
another particle in the interaction to destroy a character.
^K exploits a stack overflow in the ASCII universe, causing arbitrary
code to be executed which advances the current position (cursor?) down a
couple lines. Just think of what the creators of ASCII *could* have
made ^K do if they had been malicious...
...such as they demonstrated with ^L, which not only executes arbitrary
code for show, it is an active DoD attack, not only moving the current
position, but denying access to the desired screen/page of paper.
But worst of all is ^[ - exits insert mode in vi and workalikes to enter
command mode.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQFAWGsK/FmLrNfLpjMRAm/wAJwJrJqQJ0p8tw4bmixSuvNMOGrO8QCfcyYP
gBek44mO4PTo/Ayo35/Ig5c=
=+sGQ
-----END PGP SIGNATURE-----