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:
"W. Wesley Groleau x4923" <[log in to unmask]>
Reply To:
W. Wesley Groleau x4923
Date:
Wed, 14 Oct 1998 15:42:14 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (10 lines)
> >   if (a = b) then ...
>
> That particular example seems like a case where Ada might do what the
> programmer wanted, rather than what the programmer wrote.  In C the
> programmer probably meant ==.

The point was that they were unconsciously or consciously staying as close
to C syntax as the _Ada_ compiler would allow.  It forced them to use "="
but it did not force them to drop the unnecessary parentheses.

ATOM RSS1 RSS2