comp.lang.ada
 help / color / mirror / Atom feed
* Re: Ada language
       [not found] <CT.1E53xds13@ficc.uu.net>
@ 1990-03-03  5:09 ` William Thomas Wolfe, 2847 
  0 siblings, 0 replies; 12+ messages in thread
From: William Thomas Wolfe, 2847  @ 1990-03-03  5:09 UTC (permalink / raw)


From peter@ficc.uu.net (Peter da Silva):
> Would you care to address the confusing and dangerous deficiencies in
> the ADA language: operator overloading and the use of rendezvous for
> interprocess communication, for example? 

   The implementation of the operator to be used is completely 
   determined by the type(s) of the parameters involved and by 
   the visibility rules.  Where do you see problems?  It seems
   to me that operator overloading takes advantage of the human
   ability to process context rather extensively (which is also
   exploited in the "natural" languages such as English), and
   I have not found it to be either confusing or dangerous.

   The main problem with the rendezvous is "priority inversion",
   which will be taken care of in Ada 9X.  Feel free to describe
   any other problems you might wish to point out;  I know of nothing 
   inherently confusing or dangerous about the Ada rendezvous.


   Bill Wolfe, wtwolfe@hubcap.clemson.edu 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* ada language
@ 2002-12-03  9:05 satish umakar
  2002-12-03 10:22 ` Lutz Donnerhacke
  2002-12-03 14:40 ` Charlie McCutcheon
  0 siblings, 2 replies; 12+ messages in thread
From: satish umakar @ 2002-12-03  9:05 UTC (permalink / raw)


how to convert a array of characters(characters stored in a array read
from a file) to a string type.
thank u



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: ada language
  2002-12-03  9:05 ada language satish umakar
@ 2002-12-03 10:22 ` Lutz Donnerhacke
  2002-12-03 14:40 ` Charlie McCutcheon
  1 sibling, 0 replies; 12+ messages in thread
From: Lutz Donnerhacke @ 2002-12-03 10:22 UTC (permalink / raw)


* satish umakar wrote:
> how to convert a array of characters(characters stored in a array read
> from a file) to a string type.

The language defines:
  type String is array (Positive range <>) of Characters;
So there is no difference between an array of Characters and a String,
besides the String is a new type and the array is a different type.
Therefore simply assign it, as long as the offsets does not cause a
constraint problem:

procedure t is
   type Array_of_Character is array (Integer range <>) of Character;
   a : Array_of_Character := (-3 => 'H', -2 => 'e', -1|0 => 'l', 1 => 'o');
   b : constant Array_of_Character (1 .. a'Length) := a;
   s : String := String (b);
begin
   null;
end t;

If the domains of the offset types do not overlap, you have a problem. You
will even have a problem when copying takes to much time or ressources:

procedure t is
   type Negative is new Integer range Integer'First .. -1;
   type Array_of_Character is array (Negative range <>) of Character;
   a : Array_of_Character := (-5 => 'H', -4 => 'e', -3|-2 => 'l', -1 => 'o');
   s : String (1 .. a'Length);
   pragma Import (Ada, s);       -- Suppress initialising.
   for s'Address use a'Address;  -- Map array content.
begin
   null;
end t;



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: ada language
  2002-12-03  9:05 ada language satish umakar
  2002-12-03 10:22 ` Lutz Donnerhacke
@ 2002-12-03 14:40 ` Charlie McCutcheon
  2002-12-04 16:05   ` Richard Riehle
  1 sibling, 1 reply; 12+ messages in thread
From: Charlie McCutcheon @ 2002-12-03 14:40 UTC (permalink / raw)


satish umakar wrote:

> how to convert a array of characters(characters stored in a array read
> from a file) to a string type.
> thank u

Type string is defined as an array of characters.  You probably have what
you need already.

From Compaq Ada's package STANDARD:

   type STRING is array(POSITIVE range <>) of CHARACTER;

Charlie
Compaq Ada






^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: ada language
  2002-12-03 14:40 ` Charlie McCutcheon
@ 2002-12-04 16:05   ` Richard Riehle
  2002-12-04 16:19     ` Jean-Pierre Rosen
                       ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Richard Riehle @ 2002-12-04 16:05 UTC (permalink / raw)


Charlie McCutcheon wrote:

> From Compaq Ada's package STANDARD:

Compaq Ada?  Where did that come from?  This
is new information.   Is it Ada 95?   Who wrote the
compiler?   What platforms are supported?

Richard Riehle




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: ada language
  2002-12-04 16:05   ` Richard Riehle
@ 2002-12-04 16:19     ` Jean-Pierre Rosen
  2002-12-04 17:14     ` David C. Hoos
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 12+ messages in thread
From: Jean-Pierre Rosen @ 2002-12-04 16:19 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 530 bytes --]


"Richard Riehle" <richard@adaworks.com> a �crit dans le message news:
3DEE27C9.B7915D68@adaworks.com...
> Charlie McCutcheon wrote:
>
> > From Compaq Ada's package STANDARD:
>
> Compaq Ada?  Where did that come from?  This
> is new information.   Is it Ada 95?   Who wrote the
> compiler?   What platforms are supported?
>
> Richard Riehle
>
Compaq.Ada renames Dec.Ada
:-)

--
---------------------------------------------------------
           J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr





^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: ada language
  2002-12-04 17:14     ` David C. Hoos
@ 2002-12-04 17:10       ` Larry Kilgallen
  2002-12-04 21:44         ` Bruce Hennessy
  0 siblings, 1 reply; 12+ messages in thread
From: Larry Kilgallen @ 2002-12-04 17:10 UTC (permalink / raw)


In article <mailman.1039022103.12352.comp.lang.ada@ada.eu.org>, "David C. Hoos" <david.c.hoos.sr@ada95.com> writes:
> 
> ----- Original Message ----- 
> From: "Richard Riehle" <richard@adaworks.com>
> Newsgroups: comp.lang.ada
> To: <comp.lang.ada@ada.eu.org>
> Sent: Wednesday, December 04, 2002 10:05 AM
> Subject: Re: ada language
> 
> 
>> Charlie McCutcheon wrote:
>> 
>> > From Compaq Ada's package STANDARD:
>> 
>> Compaq Ada?  Where did that come from?  This
>> is new information.   Is it Ada 95?   Who wrote the
>> compiler?   What platforms are supported?
> Compaq Ada nee DEC Ada

Compaq Ada nee DEC Ada nee VAX Ada



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: ada language
  2002-12-04 16:05   ` Richard Riehle
  2002-12-04 16:19     ` Jean-Pierre Rosen
@ 2002-12-04 17:14     ` David C. Hoos
  2002-12-04 17:10       ` Larry Kilgallen
  2002-12-04 21:14     ` Ted Dennison
  2002-12-07 13:02     ` Per Sandbergs
  3 siblings, 1 reply; 12+ messages in thread
From: David C. Hoos @ 2002-12-04 17:14 UTC (permalink / raw)



----- Original Message ----- 
From: "Richard Riehle" <richard@adaworks.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: Wednesday, December 04, 2002 10:05 AM
Subject: Re: ada language


> Charlie McCutcheon wrote:
> 
> > From Compaq Ada's package STANDARD:
> 
> Compaq Ada?  Where did that come from?  This
> is new information.   Is it Ada 95?   Who wrote the
> compiler?   What platforms are supported?
Compaq Ada nee DEC Ada
> 
> Richard Riehle
> 
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
> 




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: ada language
  2002-12-04 16:05   ` Richard Riehle
  2002-12-04 16:19     ` Jean-Pierre Rosen
  2002-12-04 17:14     ` David C. Hoos
@ 2002-12-04 21:14     ` Ted Dennison
  2002-12-07 13:02     ` Per Sandbergs
  3 siblings, 0 replies; 12+ messages in thread
From: Ted Dennison @ 2002-12-04 21:14 UTC (permalink / raw)


Richard Riehle <richard@adaworks.com> wrote in message news:<3DEE27C9.B7915D68@adaworks.com>...
> Charlie McCutcheon wrote:
> 
> > From Compaq Ada's package STANDARD:
> 
> Compaq Ada?  Where did that come from?  This
> is new information.   Is it Ada 95?   Who wrote the
> compiler?   What platforms are supported?

Remember, Compaq bought DEC. This is just the old DEC Ada (83) compiler.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: ada language
  2002-12-04 17:10       ` Larry Kilgallen
@ 2002-12-04 21:44         ` Bruce Hennessy
  2002-12-12  1:54           ` Nick Roberts
  0 siblings, 1 reply; 12+ messages in thread
From: Bruce Hennessy @ 2002-12-04 21:44 UTC (permalink / raw)


HP Ada.

Sorry had to do it...


-----Original Message-----
From: comp.lang.ada-admin@ada.eu.org
[mailto:comp.lang.ada-admin@ada.eu.org]On Behalf Of Larry Kilgallen
Sent: Wednesday, December 04, 2002 12:10 PM
To: comp.lang.ada@ada.eu.org
Subject: Re: ada language


In article <mailman.1039022103.12352.comp.lang.ada@ada.eu.org>, "David C.
Hoos" <david.c.hoos.sr@ada95.com> writes:
>
> ----- Original Message -----
> From: "Richard Riehle" <richard@adaworks.com>
> Newsgroups: comp.lang.ada
> To: <comp.lang.ada@ada.eu.org>
> Sent: Wednesday, December 04, 2002 10:05 AM
> Subject: Re: ada language
>
>
>> Charlie McCutcheon wrote:
>>
>> > From Compaq Ada's package STANDARD:
>>
>> Compaq Ada?  Where did that come from?  This
>> is new information.   Is it Ada 95?   Who wrote the
>> compiler?   What platforms are supported?
> Compaq Ada nee DEC Ada

Compaq Ada nee DEC Ada nee VAX Ada




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: ada language
  2002-12-04 16:05   ` Richard Riehle
                       ` (2 preceding siblings ...)
  2002-12-04 21:14     ` Ted Dennison
@ 2002-12-07 13:02     ` Per Sandbergs
  3 siblings, 0 replies; 12+ messages in thread
From: Per Sandbergs @ 2002-12-07 13:02 UTC (permalink / raw)


Well i would not be that vendor specific i wold reference the "Reference
Manual."
And the definition of string is the same regardless of compiler vendor

packlage Standard is
  ...
  Type String is array(Positive range <>) of Character;
  ...
end Standard;

Also note that if a new type "MY_String is array(Poisitive range <>) of
Character;"
is declared it is a compleatly new type with its own set of operations.
/Per Sandberg

"Richard Riehle" <richard@adaworks.com> wrote in message
news:3DEE27C9.B7915D68@adaworks.com...
> Charlie McCutcheon wrote:
>
> > From Compaq Ada's package STANDARD:
>
> Compaq Ada?  Where did that come from?  This
> is new information.   Is it Ada 95?   Who wrote the
> compiler?   What platforms are supported?
>
> Richard Riehle
>





^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: ada language
  2002-12-04 21:44         ` Bruce Hennessy
@ 2002-12-12  1:54           ` Nick Roberts
  0 siblings, 0 replies; 12+ messages in thread
From: Nick Roberts @ 2002-12-12  1:54 UTC (permalink / raw)


"Bruce Hennessy" <bhennessy@decilog.com> wrote in message
news:mailman.1039038873.21451.comp.lang.ada@ada.eu.org...
> HP Ada.
>
> Sorry had to do it...

What sauce!

;-)






^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-12-12  1:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-03  9:05 ada language satish umakar
2002-12-03 10:22 ` Lutz Donnerhacke
2002-12-03 14:40 ` Charlie McCutcheon
2002-12-04 16:05   ` Richard Riehle
2002-12-04 16:19     ` Jean-Pierre Rosen
2002-12-04 17:14     ` David C. Hoos
2002-12-04 17:10       ` Larry Kilgallen
2002-12-04 21:44         ` Bruce Hennessy
2002-12-12  1:54           ` Nick Roberts
2002-12-04 21:14     ` Ted Dennison
2002-12-07 13:02     ` Per Sandbergs
     [not found] <CT.1E53xds13@ficc.uu.net>
1990-03-03  5:09 ` Ada language William Thomas Wolfe, 2847 

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