From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4935d00fd2d40578 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-21 04:44:28 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: antonio_duran@hotmail.com (Antonio Duran) Newsgroups: comp.lang.ada Subject: Re: strange problem.Help pleeeeeeeeeese Date: 21 Jun 2002 04:44:27 -0700 Organization: http://groups.google.com/ Message-ID: References: <14763faf.0206202132.14bb4f04@posting.google.com> NNTP-Posting-Host: 192.101.1.126 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1024659868 19202 127.0.0.1 (21 Jun 2002 11:44:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 21 Jun 2002 11:44:28 GMT Xref: archiver1.google.com comp.lang.ada:26547 Date: 2002-06-21T11:44:28+00:00 List-Id: 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