Re: [fpc-devel] Implicit cast from Char/String to array of Char

2019-02-25 Thread Sven Barth via fpc-devel
Am 25.02.2019 um 08:09 schrieb Ondrej Pokorny: Hello! Implicit cast from Char/String to array of Char: is this a wanted behavior or is it a compiler bug? (Btw. MODE DELPHI behaves the same). program Project1; {$mode objfpc}{$H+} procedure A(AC: array of Char); var   C: Char; begin   for C

[fpc-devel] Implicit cast from Char/String to array of Char

2019-02-24 Thread Ondrej Pokorny
Hello! Implicit cast from Char/String to array of Char: is this a wanted behavior or is it a compiler bug? (Btw. MODE DELPHI behaves the same). program Project1; {$mode objfpc}{$H+} procedure A(AC: array of Char); var   C: Char; begin   for C in AC do     WriteLn(C); end; procedure B(AC: