comp.lang.ada
 help / color / mirror / Atom feed
From: "Lucretia" <lucretia9@lycos.co.uk>
Subject: Re: Event mechanisms for GUI's
Date: 26 Sep 2006 23:21:25 -0700
Date: 2006-09-26T23:21:25-07:00	[thread overview]
Message-ID: <1159338085.495558.286500@i42g2000cwa.googlegroups.com> (raw)
In-Reply-To: <lRlSg.71918$aJ.21525@attbi_s21>

Jeffrey R. Carter wrote:

> tmoran@acm.org wrote:
> >> There's nothing wrong with case statements. They're very clear and easy
> > In small quantity, yes.  But many-branched, nested, case statements with

[snip]

> > dispatching call on When_Left_Button_Down(The_Clicked_Window) is in effect
> > a succinct abbreviation for a case statement on the type of Window,
> > implemented efficiently and without forgetfullness or typing errors,
> > automatically by the compiler.
>
> Sacrificing ease of reading for ease of writing.

Well, this is actually another part of Ada's design, the ability to
write *correct* code, by using nested case/if statements can introduce
errors. That would be the wrong way to go.

Also, I'd like this not to go off-topic too early.

Thanks,
Luke.




  parent reply	other threads:[~2006-09-27  6:21 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-26 17:28 Event mechanisms for GUI's Lucretia
2006-09-26 20:39 ` Jeffrey R. Carter
2006-09-26 23:18   ` tmoran
2006-09-27  3:02     ` Jeffrey R. Carter
2006-09-27  4:26       ` tmoran
2006-09-27  5:39         ` Jeffrey R. Carter
2006-09-27  6:21       ` Lucretia [this message]
2006-09-27 21:29         ` Jeffrey R. Carter
2006-09-27 23:05           ` Randy Brukardt
2006-09-28  3:47             ` Jeffrey R. Carter
2006-09-28  4:15               ` tmoran
2006-09-29  3:16               ` Randy Brukardt
2006-10-14 19:25               ` Lucretia
2006-10-15  1:22                 ` Jeffrey R. Carter
2006-10-15  2:29                   ` Lucretia
2006-10-16  4:11                     ` Jeffrey R. Carter
2006-10-19 14:22                       ` Lucretia
2006-10-19 15:04                         ` Dmitry A. Kazakov
2006-10-19 20:18                         ` Jeffrey R. Carter
2006-10-19 21:51                           ` Lucretia
2006-10-19 22:01                             ` Lucretia
2006-10-20  4:48                             ` Jeffrey R. Carter
2006-10-15 13:53                   ` Ed Falis
2006-10-16  4:19                     ` Jeffrey R. Carter
2006-10-14 19:44             ` Lucretia
2006-09-27  8:10 ` Dmitry A. Kazakov
replies disabled

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