TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Proportional 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:
"W. Wesley Groleau x4923" <[log in to unmask]>
Reply To:
W. Wesley Groleau x4923
Date:
Thu, 16 Jul 1998 09:27:08 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
> Actually the original program (the second variant with Standard."and")
> works correctly with the GNAT compiler (but not with ObjectAda).

You're saying GNAT will allow:

>    function "And" (Left, Right: Private_Type) return Private_Type is
>    begin
>      return Standard."And" (Left, Right);
>    end "and";

and I believe you.  But, will it not also allow:

     function "And" (Left, Right: Private_Type)
                     return       Private_Type   renames Standard."And";

?

In any case, since it didn't work for the questioner, he/she must not
be using GNAT.

ATOM RSS1 RSS2