comp.lang.ada
 help / color / mirror / Atom feed
From: antonio_duran@hotmail.com (Antonio Duran)
Subject: Re: strange problem.Help pleeeeeeeeeese
Date: 21 Jun 2002 04:44:27 -0700
Date: 2002-06-21T11:44:28+00:00	[thread overview]
Message-ID: <e1a50f2.0206210344.6011e7ea@posting.google.com> (raw)
In-Reply-To: 14763faf.0206202132.14bb4f04@posting.google.com

vashwathus@yahoo.com (Ashwath) wrote in message news:<14763faf.0206202132.14bb4f04@posting.google.com>...
> Hello,
> I am facing a peculiar problem while testing Ada procedure.
> The procedure has a variable which is local to it and it is of type
> called T_REPORT.T_REPORT is a enumeration type and it contains 3
> values CORRECT,DEFINED and UNDEFINED and is defined in another generic
> package called BLACK_BOARD.Now That local variable is passed to some
> procedure which will set it to the value CORRECT.After invoking that
> procedure the local variable is compared as follows
> if LOCAL_VARIABLE /= REPORT_BDS.CORRECT then
> .....
> .....
> else
> ....
> ....
> end if;
> Note that REPROT_BDS is instantiation of the package BLACK_BOARD.
> While debugging, the execution is going to the else part.Please let me
> know what might be the problem?
> Sorry the post is little big.I thougt to give all the details so that
> it is easy for u ppl to analyse.Pls reply as soon as possible, it is
> very urgent.
> Thanks

LOCAL_VARIABLE is set to CORRECT in the procedure, so the statement
LOCAL_VARIABLE /= CORRECT is False (LOCAL_VARIABLE became CORRECT) so
it must enter in the else part.

   Antonio Duran



  parent reply	other threads:[~2002-06-21 11:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-21  5:32 strange problem.Help pleeeeeeeeeese Ashwath
2002-06-21  7:27 ` David Marceau
2002-06-21 11:44 ` Antonio Duran [this message]
2002-06-24 14:03 ` Stephen Leake
replies disabled

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