Re: [fpc-devel] What to call this?

2018-03-25 Thread Mattias Gaertner
On Sun, 25 Mar 2018 19:59:55 +
Ozz Nixon  wrote:

> Going through the system unit, and I noticed this syntax (not verbatim!)
> 
> Procedure Cmd_Line:PChar;
> property CmdLine read Cmd_Line;
> 
> * Debating about support this, but, no idea what this would be called, a
> property outside of a class, to a global proc.

Do you mean "global properties":
https://freepascal.org/docs-html/ref/refse27.html

Mattias
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] What to call this?

2018-03-25 Thread Jonas Maebe

On 2018-03-25 21:59, Ozz Nixon wrote:

Going through the system unit, and I noticed this syntax (not
verbatim!)

Procedure Cmd_Line:PChar;

property CmdLine read Cmd_Line;

* Debating about support this, but, no idea what this would be called,
a property outside of a class, to a global proc.


Global property: https://www.freepascal.org/docs-html/ref/refse27.html


Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] What to call this?

2018-03-25 Thread Ozz Nixon
Going through the system unit, and I noticed this syntax (not verbatim!)

Procedure Cmd_Line:PChar;
property CmdLine read Cmd_Line;

* Debating about support this, but, no idea what this would be called, a
property outside of a class, to a global proc.

Thanks!
Ozz
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel