TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

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

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

Print Reply
"W. Wesley Groleau x4923" <[log in to unmask]>
Wed, 14 Oct 1998 15:42:14 -0500
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