TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version: 1.0
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
X-To: satrina <[log in to unmask]>
Date: Fri, 25 Jun 1999 18:27:01 -0400
Reply-To: "Robert I. Eachus" <[log in to unmask]>
From: "Robert I. Eachus" <[log in to unmask]>
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset="us-ascii"
Parts/Attachments: text/plain (16 lines)
At 02:58 PM 6/25/1999 -0700, satrina wrote:
>How do you swap two values of two seperate variables without declaring a
> temp variable?

    1) Depends on the type of the variable, modular types in Ada are easy,
floating point types are impossible in all languages without violating type
safety, and integer and fixed point types have solutions peculiar to Ada
(or to whatever language you are using).
    2) This sounds like a student problem.

                                        Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...