TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

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

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

Print Reply
Subject:
From:
"Robert I. Eachus" <[log in to unmask]>
Reply To:
Robert I. Eachus
Date:
Fri, 25 Jun 1999 18:27:01 -0400
Content-Type:
text/plain
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...

ATOM RSS1 RSS2