Re: [fpc-devel] Case of string

2018-04-26 Thread Alexander Klenin
On Fri, Apr 27, 2018 at 4:29 AM, Bart wrote: > Hi, > > With 3.0.4 when the inout is 'qwerty' the output is 'In 'a'..'z'. > > In trunk (r37889) the output will be: > 'In Hello' for 'Hello' and 'Hello2' > 'In 'a'..'z' only when the inout is 'a' > 'In else' for every other

[fpc-devel] Case of string

2018-04-26 Thread Bart
Hi, Case of string evaluation seems to have changed from 3.0.4 to trunk. program Project1; {$mode objfpc} {$h+} var s: string; begin repeat readln(s); case s of 'Hello', 'Hello2': writeln('In Hello'); 'a'..'z': writeln('In ''a''..''z'''); else writeln('In