[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] LENGTH and Length report different lengths
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] LENGTH and Length report different lengths |
Date: |
13 Jun 2007 07:25:13 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
John O Goyo <address@hidden> writes:
> 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
Hi John,
many thanks for reporting this and for constructing the test code.
Indeed a bug!
regards,
Gaius