gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Is this a bug?


From: John B. Wallace, Jr.
Subject: [Gm2] Is this a bug?
Date: Sun, 10 Oct 2004 18:32:00 -0400

This code produces an unexpected result:


MODULE StrAssignTest;
 
FROM StrIO IMPORT WriteString, WriteLn;
 
TYPE
  String = ARRAY [0..255] OF CHAR;
 
VAR
  Str : String;
 
BEGIN
  Str := 'abcdefghij';
  WriteString(Str);
  WriteLn;
  Str := '1234';
  WriteString(Str);
  WriteLn
END StrAssignTest.


On my system the output is:

abcdefghij
1234efghij


John




reply via email to

[Prev in Thread] Current Thread [Next in Thread]