comp.lang.ada
 help / color / mirror / Atom feed
From: Florian Weimer <fw@cygnus.stuttgart.netsurf.de>
Subject: Re: A question for my personal knowledge.
Date: 1999/05/15
Date: 1999-05-15T06:42:24+00:00	[thread overview]
Message-ID: <m3lneqn8a7.fsf@deneb.cygnus.stuttgart.netsurf.de> (raw)
In-Reply-To: 7hhuqp$2jd9@drn.newsguy.com

Steve  <Steve@newsguy.com> writes:

> In article <m3so8z4hg5.fsf@deneb.cygnus.stuttgart.netsurf.de>, Florian says...
> >Mike  <Mike@newsguy.com> writes:
> >
> >> in real OO, you invoke methods on objects.
> >
> 
> >No, you send messages to them.
> 
> Yes, that is even better. Now In Ada, how does one send a message to a 
> tagged record?? 

`Message(Tagged_Record_Variable);'?

I'm not sure whether Ada is a bit nearer to the message-based model
than C++ or Java because I haven't understood all the implications of
the Ada approach yet.

C++ and Java lack truely dynamic message dispatching (i.e. you can only
send a message to an object if its class (or some suitable base class)
is known at compile-time), and judging from my preliminary understanding,
Ada doesn't have this capability, either.  Of course, you can implement
dynamic dispatching in almost any (even non-OO) languages used today,
but without syntactic support of some kind, your code won't be easy to
write or read.

BTW: At bytecode level, the Java object model is very similar to that
of Smalltalk and Objective C.  Although you can access some of these
aspects via the Reflections API, this is very clumsy, completely lacking
any syntactic sugar, and certainly not intended for regular use.

> >(SCNR. I was offered a job as a Smalltalk coder yesterday. ;)
> 
> cool. Smalltalk is a real OO language, even more than Java. But Java
> is the one most used OO language these days.

Unfortunately, I couldn't accept, because I'm already under contract --
as a C++ programmer. :-/  But some day, I certainly want to do some
real work with one of these more dynamic OO languages (Smalltalk,
Objective C or even Python).  (Of course, Ada is on my list, too.
But I wonder whether I'll get there because I don't  want to become a
full-time programmer at all. ;)




  reply	other threads:[~1999-05-15  0:00 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-10  0:00 A question for my personal knowledge Siamak Kaveh
1999-05-10  0:00 ` Dan Nagle
1999-05-10  0:00 ` Roy Grimm
1999-05-11  0:00   ` Pascal Obry
1999-05-11  0:00     ` Roy Grimm
1999-05-11  0:00       ` Marin David Condic
1999-05-11  0:00         ` Roy Grimm
1999-05-11  0:00           ` Tucker Taft
1999-05-11  0:00             ` Roy Grimm
1999-05-12  0:00         ` Roger Racine
1999-05-12  0:00           ` Marin David Condic
1999-05-17  0:00             ` Richard D Riehle
1999-05-18  0:00               ` Marin David Condic
1999-05-18  0:00                 ` bglbv
1999-05-18  0:00                   ` William B. Clodius
1999-05-17  0:00             ` Charlie McCutcheon
1999-05-17  0:00               ` Larry Kilgallen
1999-05-17  0:00                 ` Chris
1999-05-17  0:00                   ` Marin David Condic
1999-05-17  0:00               ` Marin David Condic
1999-05-11  0:00       ` Robert Dewar
1999-05-11  0:00         ` dennison
1999-05-13  0:00           ` Mike Yoder
1999-05-13  0:00             ` Mike
1999-05-13  0:00               ` Martin C. Carlisle
1999-05-14  0:00               ` Dale Stanbrough
1999-05-13  0:00                 ` Mike
1999-05-13  0:00                   ` Brian Rogoff
1999-05-13  0:00                   ` David Starner
1999-05-18  0:00                     ` Georg Bauhaus
1999-05-14  0:00                   ` Florian Weimer
1999-05-14  0:00                     ` Steve
1999-05-15  0:00                       ` Florian Weimer [this message]
1999-05-15  0:00                         ` Matthew Heaney
1999-05-14  0:00                   ` Dale Stanbrough
1999-05-15  0:00                   ` Matthew Heaney
1999-05-18  0:00               ` Richard D Riehle
1999-05-18  0:00                 ` Hyman Rosen
1999-05-18  0:00                   ` Richard D Riehle
1999-05-18  0:00                     ` Hyman Rosen
1999-05-19  0:00                       ` Richard D Riehle
1999-05-11  0:00         ` Roy Grimm
1999-05-12  0:00           ` Robert A Duff
1999-05-10  0:00 ` Marin David Condic
1999-05-10  0:00   ` Paul Whittington
1999-05-10  0:00     ` Marin David Condic
1999-05-10  0:00 ` Sam
1999-05-10  0:00 ` Larry Kilgallen
1999-05-10  0:00   ` Keith Thompson
1999-05-12  0:00     ` Charlie McCutcheon
1999-05-12  0:00       ` Werner Pachler
1999-05-17  0:00         ` Charlie McCutcheon
1999-05-17  0:00           ` bglbv
1999-05-17  0:00             ` Larry Kilgallen
1999-05-18  0:00               ` bglbv
1999-05-19  0:00                 ` Larry Kilgallen
1999-05-11  0:00 ` Jean-Pierre Rosen
1999-05-11  0:00   ` Robert Dewar
replies disabled

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