comp.lang.ada
 help / color / mirror / Atom feed
From: Graham Hughes <graham.hughes@resnet.ucsb.edu>
Subject: Ada OO
Date: 1996/11/25
Date: 1996-11-25T00:00:00+00:00	[thread overview]
Message-ID: <57aq7s$30j@yuggoth.ucsb.edu> (raw)


-----BEGIN PGP SIGNED MESSAGE-----

I apologize if this has been glossed over before, but I didn't notice
anything immediately through the back articles.

The tutorials at http://www.adahome.org/ seem to gloss over the way Ada
OO is handled; possibly this is because they believe it to be so simple
that their explanation suffices.  However, I'm coming from C++, where OO
is quite complicated, and I'm not sure I've quite got a handle on it
yet.

- From what I've seen, Ada OO is very similar to CLOS; both use the

    Object_Method(Object, Args);

syntax instead of the C++-style

    Object.Object_Method(Args);

where Object is a tagged record.

Given this, how are C++-style virtual methods defined?  The stuff I've
looked at implied that all subprograms defined in the package spec are
virtual, and pure virtual methods are achieved by (appending?
prepending?) abstract to the definition.

With CLOS, all defmethod (or is it defgeneric? been a while) methods are
effectively virtual, and pure virtual methods are just a defgeneric (?)
with no body definitions.  Is this the way Ada OO works?

Finally, re: the abstract; is it needed in the package body, or can it
be ommitted?

Thanks for any help.
- -- 
    Graham Hughes (graham.hughes@resnet.ucsb.edu)
alt.PGPlike-key."graham@A-abe.resnet.ucsb.edu".finger.look.examine
alt.homelike-page."http://A-abe.resnet.ucsb.edu/~graham/".search.browse.view
alt.silliness."http://www.astro.su.se/~robert/aanvvv.html".look.go.laugh

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMpjr6iqNPSINiVE5AQFw3AP/UMeHylSkz0Y++9uvJsbPSbTwmQH4Y3vF
eN5AiLyTLtXFyk4TQqs7cVjhhd8yDfv1mhtU5eWA/NIAcHEhbcdggz4qr8/6j1zR
ZcAE65nRY9s6dbsPXRYzZJiZYkbEygS3SaHuZxm1NAfrOoSE1zsgTlf6cAsmsfAC
agpg1XlnA58=
=d/vL
-----END PGP SIGNATURE-----




             reply	other threads:[~1996-11-25  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-25  0:00 Graham Hughes [this message]
1996-11-25  0:00 ` Ada OO Robert A Duff
1996-11-25  0:00   ` Graham Hughes
  -- strict thread matches above, loose matches on Subject: below --
2002-10-08  2:17 Rick Duley
2002-10-08  9:28 ` John McCabe
2002-10-08  9:54 ` John McCabe
2002-10-08 18:37   ` tmoran
     [not found] <F44Lnlyg35sQtgTIFpr0000279d@hotmail.com>
2002-10-08  3:01 ` David C. Hoos, Sr.
replies disabled

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