TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
"Robert I. Eachus" <[log in to unmask]>
Fri, 25 Jun 1999 18:27:01 -0400
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...

ATOM RSS1 RSS2