comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Comparison : Ada and UML (comparison… indeed)
Date: Sun, 31 Oct 2010 07:22:45 +0100
Date: 2010-10-31T07:22:45+01:00	[thread overview]
Message-ID: <op.vlffz7vwule2fv@garhos> (raw)

Hello all,

Back to a famous topic of OO with Ada vs OO with other languages; just  
that here, let's replace “other languages” by UML.

Recall of the case (exposed in many places to show how Ada in more cleanly  
OO than so called pure-OO languages) : Let A and B be two classes. A  
defines a method “bool A::compare (A other);” (is that OK for the syntax ?  
… I forget so much about C-plus-plus). Then, B  
inherits/extends/specializes A, and thus get a method which is “bool  
B::compare (B other);”. But the concrete corresponding ones would be from  
Ada's point of view : “function Compare (Left, Righ : A) return Boolean;”  
in A class, and “function Compare (Left : B, Right : A) return Boolean;”  
in B class. Indeed, the receiver of the message in the case of B, is of  
type B, while the parameter is still of type A, as defined in A (Eiffel  
solved this with the “like” keyword if my mind is right).

OK, very nice, this shows how much Ada is superior at OO (and Eiffel two)  
than other pure-OO languages; but that is not the topic : UML seems to do  
the same! And I just wonder if it can do another way. I wonder about it  
for a personal purpose : I am actually trying to design a personal  
transformation from UML to Ada. But I am not so much sure UML is good  
enough for the purpose of modeling, while it has some interesting traits  
(like popularity, availability of editors, and so on).

This use to be a topic here, when we talked about class and package in Ada  
vs UML. This one question is another one, which troubles me even a degree  
above the one of packages and classes.

By the way, if some ones can tell about HOOD here… (I am talking about  
abstract model so far, not method). How HOOD would represent this ? With  
the same flaws or not ? (there are provision with Eclipse's Meta Language  
framework, to create something based on HOOD I believe, if ever it prove  
to be better here).

This is a symptomatic question to me.



             reply	other threads:[~2010-10-31  6:22 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-31  6:22 Yannick Duchêne (Hibou57) [this message]
2010-10-31  7:11 ` Comparison : Ada and UML (comparison… indeed) Simon Wright
2010-10-31  8:01   ` Yannick Duchêne (Hibou57)
2010-10-31  8:33     ` Vinzent Hoefler
2010-10-31 10:18       ` Yannick Duchêne (Hibou57)
2010-10-31 10:45         ` Vinzent Hoefler
2010-10-31 10:53         ` Yannick Duchêne (Hibou57)
2010-10-31 10:32       ` Yannick Duchêne (Hibou57)
2010-10-31 10:47       ` J-P. Rosen
2010-10-31 11:00         ` Yannick Duchêne (Hibou57)
2010-11-09 11:04           ` Matteo Bordin
2010-11-09 14:27             ` J-P. Rosen
2010-11-09 17:44               ` Matteo Bordin
2010-11-09 21:17                 ` J-P. Rosen
2010-11-10  9:23                   ` Matteo Bordin
2010-11-10 15:32                     ` J-P. Rosen
2010-11-09 20:02             ` Simon Wright
2010-11-10  9:34               ` Matteo Bordin
2010-11-10 21:31                 ` Simon Wright
2010-11-10 21:43                   ` Vinzent Hoefler
2010-11-11  7:40                     ` J-P. Rosen
2010-11-12 16:36                       ` Matteo Bordin
2010-11-12 16:37                       ` Matteo Bordin
2010-11-12 18:24                         ` J-P. Rosen
2010-11-12 16:27                   ` Matteo Bordin
2010-10-31 10:43     ` J-P. Rosen
2010-10-31 10:40 ` J-P. Rosen
replies disabled

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