comp.lang.ada
 help / color / mirror / Atom feed
* Re: Why is Ada NOT a good choice for a beginner to programming?
@ 2003-01-10  6:38 Grein, Christoph
  2003-01-10  8:21 ` Hyman Rosen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Grein, Christoph @ 2003-01-10  6:38 UTC (permalink / raw)


> > One complaint he had was that it be possible to define a Length
> > using derived types and still have "*" return values of type Length,
> > when it should return an area.  He had a point, hadn't he?
> > OTOH, with only structural equivalence of types, and no way to derive
> > both an integral length type and an integral area type, that are really
> > diferent, how can you build areas into your types, such that the compiler
> > will prevent use of values of the wrong type?
> > 
> > In which languages has this been fixed?
> 
> This is relatively easy to do in C++.
> See http://www.fnal.gov/docs/working-groups/fpcltf/html/SIunits-summary.html

This is also easy in Ada.

For a collection of methods how to deal with dimensions in Ada, see
<http://home.T-Online.de/home/Christ-Usch.Grein/Ada/Dimension.html>



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-01-13 23:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-10  6:38 Why is Ada NOT a good choice for a beginner to programming? Grein, Christoph
2003-01-10  8:21 ` Hyman Rosen
2003-01-10 15:51 ` Kevin Cline
2003-01-11 18:32   ` Dimension checking was " Robert C. Leif
2003-01-13 17:34     ` Stephen Leake
2003-01-13 23:20     ` Kevin Cline
2003-01-10 19:00 ` Kevin Cline

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