TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Date: Fri, 21 Apr 2000 17:17:37 -0500
Reply-To: Randy Brukardt <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
In-Reply-To: <01BFABB4.47DEA5E0@IGNITOR>
Content-Type: text/plain; charset="iso-8859-1"
From: Randy Brukardt <[log in to unmask]>
Parts/Attachments: text/plain (22 lines)
> > Section 9.5.1[1] states:
> >    "protected functions provide concurrent read-only access
> to the data." (in the P.O.)

This is the key to his problem. The next paragraph (9.5.1(2)) says that it
is illegal to write components of a protected object in a protected

His code does so in four places. Thus it is out and out illegal. It doesn't
compile with GNAT, but it does compile with at least one other compiler I
tried. (And presumably the one he is using as well).

Why are compilers missing this error? Part of the reason is that the
paragraph in question (9.5.1(2)) is only tested in the ACATS (validation
suite) with an executable test. Which means that there is no check that
compilers actually detect the error specified in that paragraph. I've added
to the list of things for the ACAA to look at.

                        Randy Brukardt
                        ACAA Technical Agent.