TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Proportional Font
Show HTML Part by Default
Show All Mail Headers

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

Print Reply
"W. Wesley Groleau x4923" <[log in to unmask]>
Thu, 16 Jul 1998 09:27:08 -0500
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