comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.not.jrcarter@acm.not.spam.org>
Subject: Re: Char type verification
Date: Fri, 17 Nov 2006 19:56:35 GMT
Date: 2006-11-17T19:56:35+00:00	[thread overview]
Message-ID: <Tto7h.283932$1i1.75136@attbi_s72> (raw)
In-Reply-To: <mQm7h.8782$ig4.3262@newsread2.news.pas.earthlink.net>

Dennis Lee Bieber wrote:
>>
> 	And none of those, to my knowledge, inflicts literal one-to-one
> constructs; they all tend to use common idiom's of the target language.
> Digging up 22 year old high-school French for example... "My name is
> xyz" is NOT translated into "moi appel est xyz", but rather to "je
> m'appel xyz" (literal "I my name xyz").

Literally, "My name is Xyz" would be "Mon nom est Xyz", and "Je 
m'appelle Xyz" is "I call myself Xyz."

> 	And, as mentioned above, the "problem" we saw upon reading your code
> was simply "identify if <input> is an uppercase character", and the
> solution to /that/ problem is the simple "x in 'A'..'Z'" structure.

Later he talked about checking for inclusion in a non-contiguous range, 
but never did he say anything about why he did odd things such as making 
unnecessary conversions.

Perhaps we should simply have said that there is no Obfuscated Ada contest.

-- 
Jeff Carter
"Beyond 100,000 lines of code you
should probably be coding in Ada."
P. J. Plauger
26



  parent reply	other threads:[~2006-11-17 19:56 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-15 22:00 Char type verification KE
2006-11-15 21:57 ` Georg Bauhaus
2006-11-15 23:15   ` KE
2006-11-16  4:48     ` Jeffrey R. Carter
2006-11-16 19:53       ` Adam Beneschan
2006-11-16 23:30       ` Yves Bailly
2006-11-17  0:48         ` Jeffrey R. Carter
2006-11-17  1:59           ` Adam Beneschan
2006-11-17 11:30           ` Stephen Leake
2006-11-17 15:33             ` KE
2006-11-17 15:10               ` Georg Bauhaus
2006-11-17 18:30               ` Ludovic Brenta
2006-11-18  2:29                 ` Brian May
2006-11-17 19:45               ` Jeffrey R. Carter
     [not found]               ` <mQm7h.8782$ig4.3262@newsread2.news.pas.earthlink.net>
2006-11-17 19:56                 ` Jeffrey R. Carter [this message]
     [not found]                   ` <omz7h.222$1s6.165@newsread2.news.pas.earthlink.net>
2006-11-19  2:19                     ` OT: French Idioms (was Re: Char type verification) Jeffrey R. Carter
2006-11-19  9:04                       ` Dmitry A. Kazakov
2006-11-17 21:22         ` Char type verification Simon Wright
2006-11-17 23:59           ` Yves Bailly
2006-11-15 23:23 ` Simon Wright
2006-11-15 23:33   ` KE
2006-11-16  4:52     ` Jeffrey R. Carter
2006-11-15 23:36 ` Adam Beneschan
2006-11-15 23:55   ` KE
2006-11-16  4:54     ` Jeffrey R. Carter
2006-11-16  1:08 ` jimmaureenrogers
2006-11-16  1:45   ` KE
2006-11-16  2:15     ` jimmaureenrogers
2006-11-16  2:42     ` Steve Whalen
2006-11-16  9:36     ` Alex R. Mosteo
2006-11-16  7:02 ` KE
2006-11-16 17:04   ` Dmitry A. Kazakov
2006-11-16 22:43   ` Brian May
  -- strict thread matches above, loose matches on Subject: below --
2006-11-16 16:01 Anh Vo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox