comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Discriminated records are not the most efficient, but ...
Date: Sun, 22 Aug 2010 22:40:08 +0200
Date: 2010-08-22T22:40:08+02:00	[thread overview]
Message-ID: <op.vhuw06a1ule2fv@garhos> (raw)
In-Reply-To: op.vhtrcjhmule2fv@garhos

Le Sun, 22 Aug 2010 07:39:45 +0200, Yannick Duchêne (Hibou57)  
<yannick_duchene@yahoo.fr> a écrit:
> (here, the underscore “_” has the same meaning as with Prolog)
This “_” is nice for analysis, as it explicitly state a given component of  
a structure is not used in a given branch of a recursive algorithm (or  
even not recursive). I feel this help to express clean analysis.

Funny: I came to an SML tutorial containing a whole paragraph talking  
about Ada and how some SML constructs can be mapped to Ada. It said (they  
seemed to like Pascal and Algol also):

   Roughly speaking (that is their wording)
    * Structures in ML corresponds to Package in Ada
    * Signature corresponds to an Ada Package Interface
    * Functor corresponds to Generic Package in Ada

But they was wrong in one point, as they also ended with:

    “However, ML admits structures (not just types) as parameters to  
functors.”

Probably they never heard about “package formal parameter”. I suppose they  
knew about Ada 83 and this was not there with this one (but was this  
really the case ?)

They also forget about discriminated records (but they did not claim their  
match/match list was exhaustive).



  reply	other threads:[~2010-08-22 20:40 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-21 21:18 Discriminated records are not the most efficient, but Yannick Duchêne (Hibou57)
2010-08-21 21:57 ` Yannick Duchêne (Hibou57)
2010-08-22  5:39   ` Yannick Duchêne (Hibou57)
2010-08-22 20:40     ` Yannick Duchêne (Hibou57) [this message]
2010-08-22 20:47       ` Florian Weimer
2010-08-22 22:07         ` Yannick Duchêne (Hibou57)
2010-08-22 22:11           ` Yannick Duchêne (Hibou57)
2010-08-23  3:06           ` Peter C. Chapin
2010-08-23  3:50             ` Yannick Duchêne (Hibou57)
2010-08-23  6:25               ` J-P. Rosen
2010-08-23  8:09                 ` Yannick Duchêne (Hibou57)
2010-08-23  6:40               ` Niklas Holsti
2010-08-23  7:33                 ` Simon Wright
2010-08-23 11:44                   ` Martin
2010-08-23 13:16                     ` Georg Bauhaus
2010-08-23 13:32                       ` Martin
2010-08-23 17:02                       ` Yannick Duchêne (Hibou57)
2010-08-23  8:13                 ` Yannick Duchêne (Hibou57)
2010-08-23  1:52         ` Yannick Duchêne (Hibou57)
2010-08-23  5:14           ` Yannick Duchêne (Hibou57)
2010-08-23  5:43             ` Florian Weimer
2010-08-23  7:55               ` Yannick Duchêne (Hibou57)
2010-08-23  8:06                 ` Dmitry A. Kazakov
2010-08-23  8:26                   ` Yannick Duchêne (Hibou57)
2010-08-23  8:43                     ` Dmitry A. Kazakov
2010-09-04 18:49             ` Florian Weimer
replies disabled

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