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
Condense Mail Headers

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

Print Reply
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Subject:
From:
Matthew Heaney <[log in to unmask]>
Date:
Mon, 7 Dec 1998 19:54:52 -0800
In-Reply-To:
Thomas W Moran's message of "Mon, 7 Dec 1998 19:30:26 -0500"
X-To:
Reply-To:
Matthew Heaney <[log in to unmask]>
Parts/Attachments:
text/plain (16 lines)
Thomas W Moran <[log in to unmask]> writes:

> >float or integer coefficients
>   X := X+1;   or X := X+1.0;
> One will be illegal.  I think you'll have to use
>   X := X+This_Type(1);

If you import that type as a private, you'll have to import literals
too:

generic
  type T is private;
  One : in T;
  with function "+" (L, R : T) return T is <>;
...

ATOM RSS1 RSS2