Re: No call for Ada (was Re: Announcing new scripting/prototyping language)
From: Xenos (dont.spam.me_at_spamhate.com)
Date: 02/11/04
- Next message: Preben Randhol: "Re: No call for Ada (was Re: Announcing new scripting/prototyping language)"
- Previous message: Ole-Hjalmar Kristensen: "Re: No call for Ada (was Re: Announcing new scripting/prototyping language)"
- In reply to: Dmitry A. Kazakov: "Re: No call for Ada (was Re: Announcing new scripting/prototyping language)"
- Next in thread: Preben Randhol: "Re: No call for Ada (was Re: Announcing new scripting/prototyping language)"
- Reply: Preben Randhol: "Re: No call for Ada (was Re: Announcing new scripting/prototyping language)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 11 Feb 2004 11:06:03 -0500
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message
news:qdqj20lomb5865p7qb24eojpgk7ijpbikr@4ax.com...
> On 10 Feb 2004 18:19:13 -0800, msg1825@yahoo.com (MSG) wrote:
>
> is in fact to copy a string. If it would, it could then apply a
> corresponding target CISC machine instruction. In Ada it is easier for
> the compiler:
>
> T : String (...);
> S : String (...);
>
> T := S;
>
> Even if you work at the array abstraction level:
>
> for I in S'Range loop
> T (I) := S (I);
> end loop;
>
But of course, the first example will only work if S'Length is equal to
T'Length or it will raise a constraint_error. The second will only work if
T'Length is greater than or equal to S'Length.
DrX
- Next message: Preben Randhol: "Re: No call for Ada (was Re: Announcing new scripting/prototyping language)"
- Previous message: Ole-Hjalmar Kristensen: "Re: No call for Ada (was Re: Announcing new scripting/prototyping language)"
- In reply to: Dmitry A. Kazakov: "Re: No call for Ada (was Re: Announcing new scripting/prototyping language)"
- Next in thread: Preben Randhol: "Re: No call for Ada (was Re: Announcing new scripting/prototyping language)"
- Reply: Preben Randhol: "Re: No call for Ada (was Re: Announcing new scripting/prototyping language)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|