[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] mea culpa, testcase9 is good, but testcase8??
From: |
Andreas Fischlin |
Subject: |
Re: [Gm2] mea culpa, testcase9 is good, but testcase8?? |
Date: |
Sat, 11 Sep 2010 00:48:51 +0200 |
I do not understand what this testcase8 should be good for. The test program
behaves erratically and for good reasons. Why do you wish to compare two
variables which were never assigned any value? This simply makes no sense to
me. Do you wish to test whether the linking/loader does assign for you any
uninited variable? If yes, why not writing a simpler program such as this one:
MODULE TestCase8;
VAR x,y: INTEGER;
BEGIN
IF x <> y THEN (* FAIL *) END;
IF NOT x = y THEN (* PASS *) END;
END TestCase8.
Can anyone clarify? It still does not make much sense.
Regards,
Andreas
ETH Zurich
Prof. Dr. Andreas Fischlin
Systems Ecology - Institute of Integrative Biology
CHN E 21.1
Universitaetstrasse 16
8092 Zurich
SWITZERLAND
address@hidden
www.sysecol.ethz.ch
+41 44 633-6090 phone
+41 44 633-1136 fax
+41 79 221-4657 mobile
Make it as simple as possible, but distrust it!
________________________________________________________________________
On 11/Sep/2010, at 00:18 , Gaius Mulley wrote:
> Dragiša Durić <address@hidden> writes:
>
>> (* as per comments, but why??? *)
>>
>> MODULE TestCase8;
>>
>> TYPE
>> T = POINTER TO RECORD
>> cmp: PROCEDURE;
>> left, right: T;
>> END;
>>
>> VAR
>> a, b: T;
>>
>> BEGIN
>> IF a^.cmp <> b^.cmp THEN (* FAIL *)
>> END;
>> IF NOT (a^.cmp = b^.cmp) THEN (* PASS *)
>> END;
>> END TestCase8.
>>
>> --
>> Dragiša Durić <address@hidden>
>
> Hi Dragiša,
>
> thanks for the additional test code - I've now added this to the list
> of pending bugs..
>
> regards,
> Gaius
>
> _______________________________________________
> gm2 mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gm2
- [Gm2] mea culpa, testcase9 is good, but testcase8??, Dragiša Durić, 2010/09/10
- Re: [Gm2] mea culpa, testcase9 is good, but testcase8??, Gaius Mulley, 2010/09/10
- Re: [Gm2] mea culpa, testcase9 is good, but testcase8??,
Andreas Fischlin <=
- Re: [Gm2] mea culpa, testcase9 is good, but testcase8??, Gaius Mulley, 2010/09/14