[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] LENGTH and Length report different lengths
From: |
John O Goyo |
Subject: |
[Gm2] LENGTH and Length report different lengths |
Date: |
Tue, 12 Jun 2007 18:10:37 -0400 |
User-agent: |
Thunderbird 1.5.0.10 (X11/20070221) |
Witness.
=================================
abilio[109]=> cat tstLength.mod
MODULE tstLength;
FROM M2RTS IMPORT Length;
FROM StrIO IMPORT WriteLn, WriteString;
FROM NumberIO IMPORT WriteCard;
VAR
s :ARRAY[1..5] OF CHAR;
BEGIN
s := "What?";
WriteString("LENGTH(s) reports ");
WriteCard(LENGTH(s), 4); WriteLn;
WriteString("Length(s) reports ");
WriteCard(Length(s), 4); WriteLn;
END tstLength.
abilio[110]=> gm2 -c -Wiso tstLength.mod
abilio[111]=> gm2 -o tstLength -I. tstLength.mod
abilio[112]=> ./tstLength
LENGTH(s) reports 1
Length(s) reports 5
=================================
I believe that they should agree.
Sincerely,
john
- [Gm2] LENGTH and Length report different lengths,
John O Goyo <=