Re: [fpc-devel] Copy() and ZeroBaseStrings

2025-04-08 Thread Kazantsev Alexey via fpc-devel
On Sun, 6 Apr 2025 23:18:47 +0200 Bart via fpc-devel wrote: > Hi, > > Is this a known issue? > Outputs: > S[0]= "A" [Ok] > S[1]= "B" [Ok] > S[2]= "C" [Ok] > Copy(S,0,1) = "A" [Ok] > Copy(S,1,1) = "A", FAIL: expected: B In the Delphi {$zerobasedstrings on/off} : 1. Strin

Re: [fpc-devel] Optimizing unused return values of inline functions

2017-08-22 Thread Kazantsev Alexey via fpc-devel
On Tue, 22 Aug 2017 13:15:24 +0200 (CEST) Michael Van Canneyt wrote: > Call me old-fashioned, but I much prefer > >With StdIO::stdOutPrinter() do > begin > out("Helllo World "); > out(42); > out(""); > hex(); > out(42); > line(); > end; > > I see no p