comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jeffrey.carter@boeing.com>
Subject: Re: Protected Object: little question
Date: Fri, 30 Nov 2001 22:37:16 GMT
Date: 2001-11-30T22:37:16+00:00	[thread overview]
Message-ID: <3C080A1C.F597D2D4@boeing.com> (raw)
In-Reply-To: 3C07DE0D.B5B1C77B@9online.fr

Bruno Hergott wrote:
> 
> If i want to implement an action wich does only read access to the protected data and wich
> can
> be called by 2 tasks at the same time, i must write a function.
> But i may not need the return value of this function. Because what i want is not really a
> function.
> What i want is "the thing in a protected object to do only read access to the protected
> data
> and wich can be called by 2 tasks at the same time".
> And so i must for example call this action like this:
> My_Boolean_Return_Value_I_Dont_Want := My_Protected_Object.MyProtectedFunction(..);
> It seems to strange to be true...
> 
> Or is there something i haven't understand ?

Since the function can't change the protected object, and you ignore the
return value, what's the point of calling the function?

-- 
Jeffrey Carter



  parent reply	other threads:[~2001-11-30 22:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-30 19:29 Protected Object: little question Bruno Hergott
2001-11-30 21:15 ` Dale Stanbrough
2001-12-01  4:00   ` Mark Lundquist
2001-12-01 15:55     ` Nick Roberts
2001-11-30 22:37 ` Jeffrey Carter [this message]
2001-12-01 10:43 ` Ehud Lamm
2001-12-03 13:24 ` John English
2001-12-03 15:26   ` Martin Dowie
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox