comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: MI is sloppy
Date: Fri, 12 Dec 2008 13:15:35 +0100
Date: 2008-12-12T13:15:36+01:00	[thread overview]
Message-ID: <494255e8$0$31331$9b4e6d93@newsspool4.arcor-online.net> (raw)
In-Reply-To: <bmzxjki02y3x$.2ruklayq2oor.dlg@40tude.net>

Dmitry A. Kazakov schrieb:

>> If you have an ambitious compiler, it might reach out,
>> at compile time, for objects whose behavior is then known
>> to be constrained by membership in a then known specific
>> subtype.
> 
> ... and then inline raising Constraint_Error. Great!
> 
> Constraint_Error propagation is the contracted behavior. You have signed
> that contract, enjoy it.

But the compiler informs you that Constraint_Error will
be raised if your program is such that it will be raised.
Anything wrong with correcting the program?

Deriving another type, even if not sufficiently different
from the original to warrant a type, is another formal
way to trigger the same effect on the programmer, at compile
time: "There is something odd about your program".


If we wanted more of the minor differences covered
by type hierarchies, we might end up with a Qi type
system... For Ada?



  reply	other threads:[~2008-12-12 12:15 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-06 10:09 MI is sloppy (was: Construction initialization problem) Dmitry A. Kazakov
2008-12-06 17:16 ` Georg Bauhaus
2008-12-06 21:16   ` Martin Krischik
2008-12-06 21:35     ` Maciej Sobczak
2008-12-07  9:12   ` MI is sloppy Dmitry A. Kazakov
2008-12-07 15:38     ` Georg Bauhaus
2008-12-07 20:04       ` Dmitry A. Kazakov
2008-12-11  0:40 ` MI is sloppy (was: Construction initialization problem) Randy Brukardt
2008-12-11 10:02   ` MI is sloppy Dmitry A. Kazakov
2008-12-11 21:44     ` Randy Brukardt
2008-12-11 23:17       ` Georg Bauhaus
2008-12-12 10:06         ` Dmitry A. Kazakov
2008-12-12  9:59       ` Dmitry A. Kazakov
2008-12-12 10:50         ` Georg Bauhaus
2008-12-12 11:15           ` Dmitry A. Kazakov
2008-12-12 12:15             ` Georg Bauhaus [this message]
2008-12-12 13:35               ` Dmitry A. Kazakov
2008-12-12 14:29                 ` Georg Bauhaus
2008-12-12 14:59                   ` Dmitry A. Kazakov
2008-12-13  0:08                 ` Randy Brukardt
2008-12-13  9:54                   ` 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