0

I want to make a procedure to write a color text, similar writeln();

writelncolor(color:byte;args:arguments);

But when I compile it, Pascal found an error not found type Arguments

enter image description here

I looked in Lazarus, in unit System, it have writeln procedure:

writeln(args:arguments);

Please help me, thanks. Image1

Vuio
  • 140
  • 1
  • 7
  • 1
    In your procedure you have written the second argument as `args:argument` Note, it should be of type `arguments` (plural, ending in s) – Tom Brunberg May 20 '17 at 12:43
  • 1
    FYI, I have voted to close this question as the cause is a simple typographical error. The question will not have value for future readers. – Tom Brunberg May 20 '17 at 12:50
  • 1
    @Tom Arguments is just an IDE shim for the Writeln intrinsic. See the dupe. – David Heffernan May 20 '17 at 12:51
  • Ah, ok @David, for a brief moment I thought here was something to put behind my ear ;) – Tom Brunberg May 20 '17 at 13:21
  • 1
    `Arguments` is not a real type. `Writeln` and others are so called "compiler magic" functions (currently, also called: "intrinsics"), which are recognized by the compiler as special and, depending on the parameters passed, are compiled as combinations of several different, hidden, runtime functions, or sometimes just as casts or inline code. – Rudy Velthuis May 20 '17 at 15:50
  • Yes. That's what it says at the dupe. – David Heffernan May 20 '17 at 17:29
  • @David: assuming you meant what I wrote: no, it doesn't, at least not exactly. – Rudy Velthuis May 20 '17 at 22:10
  • Probably the difference is that Marco's post was technically accurate, and used the right terminology, on account of he being one of the fpc developers – David Heffernan May 20 '17 at 22:22

0 Answers0