comp.lang.ada
 help / color / mirror / Atom feed
From: tinton.ccur.com!cjh@princeton.edu  (Christopher J. Henrich)
Subject: Re: Anyone else actually like Ada?
Date: 27 Jul 93 15:59:47 GMT	[thread overview]
Message-ID: <1993Jul27.155947.11409@tinton.ccur.com> (raw)

In article <1993Jul26.163408.16766@enpc.fr> ebert@enpc.fr writes:
>I'd really like to know what C can, that Ada can't, especially in the
>field of object oriented simulation. I'm going to finish my PhD thesis
>about applaying OOD to the simulation of thermal systems. I volontarily
>choose Ada as the implementation language and it matches our needs very
>well. (another one who replies YES to the question of the subject)
>
>	salut, 
>		Rolf
>
>-----------------------------------------------------------------------------
>Rolf Ebert     Groupe Informatique et Systemes Energetiques     GISE EMP-ENPC
>Tel: +33 1 43044098 app 3475 FAX: +33 1 43046364            La Courtine Cedex
>Internet: ebert@enpc.fr                                F-93167 Noisy le Grand

In C you can refer to a function by way of a pointer to it, and you
can move these pointers around like other pointers.  By restrained
use of this ability, you can achieve various object-oriented goals,
such as letting an "object" determine what code is called to perform
a certain operation on it.

In Ada83 you can achieve some of the same goals, by careful use of
generic units with subprogram formals. The decision about what code
to bind to the "formals" must be made at compilation time, and
the syntax of generic units makes it all seem much more rigid.
(But also much more safe. :-)) 

Ada9X has (will have) "access to subprogram" types, and also
new generic constructions.  I predict that when we get good at
using these features, we shall be able to do a lot of neat
object-oriented stuff, in particular object-oriented simulation.

Regards,
Chris Henrich

             reply	other threads:[~1993-07-27 15:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-27 15:59 Christopher J. Henrich [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-07-28 16:56 Anyone else actually like Ada? Wes Groleau X7574
1993-07-27 23:05 Robert I. Eachus
1993-07-27 14:38 david.c.willett
1993-07-26 22:27 Richard Dye
1993-07-26 21:38 Don Tyzuk
1993-07-26 18:57 Laurence VanDolsen
1993-07-26 16:34 Germany.EU.net!mcsun!julienas!enpc!marronnier!re
1993-07-26 15:51 cis.ohio-state.edu!news.sei.cmu.edu!ajpo.sei.cmu.edu!wellerd
1993-07-26 13:52 cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!howland.
1993-07-26 13:45 cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!howland.
1993-07-24 22:00 Tim Barrios
1993-07-24  4:02 cis.ohio-state.edu!math.ohio-state.edu!darwin.sura.net!seas.gwu.edu!mfeld
1993-07-23 23:21 Kenneth Anderson
1993-07-23 22:53 david.c.willett
replies disabled

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