program Cojest;
procedure bla(var s: ansistring);
begin
writeln(s);
end;
begin
bla('yada');
end.
wyrzuca
Free Pascal Compiler version 2.6.2-5 [2013/07/25] for x86_64
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling cojest.pas
cojest.pas(10,13) Error: Variable identifier expected
cojest.pas(13) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)
Jak przekazać literał jako paramtetr?