Re: How come Ada isn't more popular?




"Maciej Sobczak" <no.spam@xxxxxxxxxxx> wrote in message
news:eputhf$p8u$1@xxxxxxxxxxxxxxxxxxx
Markus E Leypold wrote:

Ada 95 *is* terrible. It doesn't have containers nor unbounded strings and it
cannot even return limited types from functions. Yuck! ;-)

Both statements are untrue.

There are numerous container libraries available for Ada 95.
However, there is no standard container library as part of
the language standard.

Three string libraries are available: Fixed, Bounded and Unbounded.

While the inability to return limited types from a function is a bit of
an inconvenience, it does not prevent one from writing subprograms
that support the equivalent kind of thing using an in out mode parameter
in a procedure. Further, one is not required to use limited types when
they are inconvenient. That being said, the recent change allowing
limited types in return statements is, potentially, an improvement.

Richard Riehle


.



Relevant Pages

  • Re: Controlled types and exception safety
    ... Since we need to component, we need to call the Assign procedure on the component C, but what left-hand side to pass as To? ... Working out the rules is probably complicated, and hardly worth the effort since Ada uses another mechanism, but I'm still not convinced it couldn't be done. ... And limited types also block most optimizations by their very nature. ... Complex default initialization requires some work, but I was able to do some pretty complex default initialization using functions as default initial values in Ada 83. ...
    (comp.lang.ada)
  • Re: Controlled types and exception safety
    ... how is this assignment performed if we're using the default ... mistake early on in the Ada 95 process). ... >> Maybe Ada 200Y limited types and Assign procedures would be adequate, ... what's the value of preventing aggregates of types ...
    (comp.lang.ada)
  • Re: ADA Popularity Discussion Request
    ... > First, yes, I am the author of Ada Distilled. ... People do look at issues in programming languages ... Somehow I've never understood the point of making limited types a ... it has extensive facilities to support static array-based programming. ...
    (comp.lang.ada)
  • Re: How come Ada isnt more popular?
    ... Returning limited types is a compromise that can be ... satisfying in most cases - that's why it's good that Ada 2005 provides ...
    (comp.lang.ada)
  • Re: Virtual Components in Ada and Ruby
    ... > Stubborn resistance to this feature in Ada somehow resembles that infamous ... Yesterday was the first time I can recall ever ... giving real constructors to limited types, so there should no longer be any ...
    (comp.lang.ada)