comp.lang.ada
 help / color / mirror / Atom feed
From: "Jean-Pierre Rosen" <rosen@adalog.fr>
Subject: Re: Extension of non-limited type needs limited component
Date: Fri, 15 Nov 2002 14:29:31 +0100
Date: 2002-11-15T14:29:31+01:00	[thread overview]
Message-ID: <ar2smt$pj9$1@s1.read.news.oleane.net> (raw)
In-Reply-To: h7o9tukhr9q0kauh31r698eft5qb4riqip@4ax.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1058 bytes --]


"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> a �crit dans le message
news:
> Both Ada and SmallTalk [AFAIK] do not crash when such thing happens.
> But this is not the problem. The problem is that though one could wish
> to detect all such and similar cases at compile time, one cannot. This
> does not mean that we should drop compile-time checks. [To put it
> clear, Ada is right, SmallTalk is wrong! (:-))] It only means that the
> argument, "this is not allowed, because it cannot be fully checked at
> compile time" is wrong. Alas, there are many damn useful things
> uncheckable at compile time.

... with tagged types.

The benefit, and drawback, of tagged types is that they allow dynamic
typing, therefore requiring (isn't it surprising) dynamic checking. More
flexibility, less security. If you want full compile-time checking, don't
use tagged types.
At least in Ada, you have a choice!

--
---------------------------------------------------------
           J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr





  reply	other threads:[~2002-11-15 13:29 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-15 10:47 Extension of non-limited type needs limited component Grein, Christoph
2002-11-15 12:12 ` Dmitry A. Kazakov
2002-11-15 13:29   ` Jean-Pierre Rosen [this message]
2002-11-15 14:34     ` Dmitry A. Kazakov
2002-11-15 21:26     ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2002-11-13 10:03 Mike
2002-11-13 12:06 ` Jean-Pierre Rosen
2002-11-14  9:26   ` Mike
2002-11-14 11:43     ` David C. Hoos, Sr.
2002-11-14 12:33     ` Jean-Pierre Rosen
2002-11-14 14:27       ` Dmitry A. Kazakov
2002-11-14 19:25         ` Randy Brukardt
2002-11-15 10:04           ` Dmitry A. Kazakov
2002-11-15 22:09             ` Robert A Duff
2002-11-16 12:39               ` Dmitry A. Kazakov
2002-11-16 16:15                 ` Robert A Duff
2002-11-17 11:14                   ` Dmitry A. Kazakov
2002-11-17 12:26               ` Dale Stanbrough
2002-11-18 20:33                 ` Randy Brukardt
2002-11-18 21:48               ` Eric
2002-11-19 14:38               ` Eric
2002-11-15 21:41           ` Robert A Duff
2002-11-16  3:54             ` Randy Brukardt
2002-11-15  0:30         ` Robert A Duff
2002-11-15 10:22           ` Dmitry A. Kazakov
2002-11-15 21:56             ` Robert A Duff
2002-11-16 12:39               ` Dmitry A. Kazakov
2002-11-14 23:39     ` Robert A Duff
2002-11-15 21:51       ` Mike
2002-11-13 14:28 ` Robert A Duff
2002-11-14  9:33   ` Mike
2002-11-14  9:35     ` Lutz Donnerhacke
2002-11-14 21:41     ` Robert A Duff
replies disabled

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