comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: OOD in Ada?
Date: Fri, 28 Jun 2002 09:09:36 -0400
Date: 2002-06-28T13:09:37+00:00	[thread overview]
Message-ID: <afhn6h$i3i$1@nh.pace.co.uk> (raw)
In-Reply-To: fKIS8.801$X14.133162217@newssvr13.news.prodigy.com

O.K. I understand where you were going with it now. I'd agree that trying to
make everything in a parse tree as you describe it use the type system to
try to guarantee correctness is a bad idea. Attempting to do so is only
likely to lead to fighting with the compiler endlessly & for little
advantage. Better to have the parser logic insure that only a correct parse
tree gets built & use a more loose level of type checking on the access
types.

It still leaves a hole in that someone could derive from the base class and
succeed in getting something into the parse tree that is incorrect - but
doing so would require some rather deliberate moves. The answer can be "Then
just don't do that!" because it isn't likely to happen just by an accidental
coding error.

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com


<tmoran@acm.org> wrote in message
news:fKIS8.801$X14.133162217@newssvr13.news.prodigy.com...
>    I presume the OP wants to have things along the line of
>
>      type Adding_Operator is tagged record ...
>        Op_Char : character;
>      end record;
>      type Simple_Expression is tagged record>        Left :
Access_Simple_Expression;
>        Add_Op : Access Adding_Operator;
>        Right  : Access_Term;
>      end record;

>
<snip>





  reply	other threads:[~2002-06-28 13:09 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-21 16:39 OOD in Ada? David Crocker
2002-06-21 17:20 ` Pat Rogers
2002-06-21 19:37   ` Ed Falis
2002-06-23  3:05   ` Ted Dennison
2002-06-23  7:03     ` tmoran
2002-06-24 21:41       ` Ted Dennison
2002-06-24 14:19     ` Stephen Leake
2002-06-21 17:22 ` Marin David Condic
2002-06-22  4:42 ` Jeffrey Carter
2002-06-22  9:18 ` Dr. Michael Paus
2002-06-22  9:47   ` Pascal Obry
2002-06-22 13:11     ` Dr. Michael Paus
2002-06-22 13:46       ` OOD in Ada? Correction Dr. Michael Paus
2002-06-22 18:21         ` Simon Wright
2002-06-28 23:57         ` Randy Brukardt
2002-07-09  8:45           ` Preben Randhol
2002-07-09 17:12             ` Mark Biggar
2002-07-09 19:40             ` Randy Brukardt
2002-06-23  3:33   ` OOD in Ada? steve_H
2002-06-23  4:55     ` Jim Rogers
2002-06-23  5:33       ` achrist
2002-06-25 18:00       ` Georg Bauhaus
2002-06-25 18:55         ` Marin David Condic
2002-07-07 18:19           ` Daniel Dudley
2002-06-23  7:46     ` Dr. Michael Paus
2002-06-24  5:06       ` steve_H
2002-06-23 19:26   ` Chad R. Meiners
2002-06-22 22:47 ` Dmitry A.Kazakov
2002-06-24 20:03 ` Kevin Cline
2002-06-25 13:32   ` David Crocker
2002-06-25 13:58     ` Marin David Condic
2002-06-26 18:16       ` tmoran
2002-06-26 18:47         ` Marin David Condic
2002-06-27 18:23           ` tmoran
2002-06-28 13:09             ` Marin David Condic [this message]
2002-06-26  0:59     ` Hyman Rosen
2002-06-26  4:57       ` Jim Rogers
2002-06-26 12:49       ` Marin David Condic
2002-06-26  9:01     ` Fraser Wilson
2002-06-29  0:08       ` Randy Brukardt
2002-07-01 11:50         ` Fraser Wilson
2002-07-05 20:02     ` Stephen J. Bevan
2002-07-09 19:19 ` Craig Carey
replies disabled

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