Re: GPC BUG: String comparison with less or greater than does not work
2 Jun
1999
2 Jun
'99
1:52 p.m.
pdietrich@synstar.de wrote:
GPC cannot compare string with < or >. The following program shows this fact:
program test (output);
var str1 : string[10] := 'MODULE'; str2 : string[10] := 'LABEL';
begin writeln ('str1=str2: ', str1=str2); writeln ('str1<str2: ', str1<str2); writeln ('str1>str2: ', str1>str2); end.
The output of this program is:
str1=str2: False str1<str2: False str1>str2: False
There was a bug in the last beta release (only), in that the (non-trimming) '>' and '<=' string operators were mixed up. This will be fixed in the next release. Frank -- Frank Heckenbach, frank@fjf.gnu.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html
9933
Age (days ago)
9933
Last active (days ago)
0 comments
1 participants
participants (1)
-
Frank Heckenbach