Recent

Author Topic: Args : Arguments  (Read 1980 times)

hakelm

  • Full Member
  • ***
  • Posts: 153
Args : Arguments
« on: September 11, 2017, 02:59:54 pm »
In system.fdp we find for instance the declaration:
Procedure Write (Args : Arguments);
that uses the very flexible type Arguments.
Where and how is Arguments defined and how can I use the type Arguments for my own purposes?
Thanks in advance for any tip.
H

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Args : Arguments
« Reply #1 on: September 11, 2017, 03:35:04 pm »
You can't. It is only a pseudo syntax for something that is hardcoded into the compiler.

The compiler however does allow for a more limited variable argument syntax, search the manuals for "array of const"

hakelm

  • Full Member
  • ***
  • Posts: 153
Re: Args : Arguments
« Reply #2 on: September 11, 2017, 03:40:55 pm »
Thanks
That (nearly) did the trick.
H

 

TinyPortal © 2005-2018