Re: [fpc-pascal] Traits Proposal

2021-02-09 Thread Michael Van Canneyt via fpc-pascal
On Tue, 9 Feb 2021, Ryan Joseph via fpc-pascal wrote: We had talked about this some time ago and it's been rattling around in my brain so I wanted to write it down into a formal proposal where we can discuss it and hopefully agree upon a syntax. Everything is preliminary and tentative but

[fpc-pascal] Traits Proposal

2021-02-09 Thread Ryan Joseph via fpc-pascal
We had talked about this some time ago and it's been rattling around in my brain so I wanted to write it down into a formal proposal where we can discuss it and hopefully agree upon a syntax. Everything is preliminary and tentative but this is a syntax which allows a "composition over

[fpc-pascal] Value:x:y syntax

2021-02-09 Thread Luis Henrique via fpc-pascal
09.02.2021, 09:15, "Christo Crause" : > On Tue, Feb 9, 2021 at 2:11 PM Luis Henrique via fpc-pascal > wrote: >> At >> https://lists.freepascal.org/pipermail/fpc-devel/2021-February/043569.html I >> saw the syntax "value: x: y". >>> str(value:6:3, valuestr); >> What is the name of this and

Re: [fpc-pascal] Value:x:y syntax

2021-02-09 Thread Christo Crause via fpc-pascal
On Tue, Feb 9, 2021 at 2:11 PM Luis Henrique via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > At > https://lists.freepascal.org/pipermail/fpc-devel/2021-February/043569.html > I saw the syntax "value: x: y". > > str(value:6:3, valuestr); > What is the name of this and where is it

Re: [fpc-pascal] Value:x:y syntax

2021-02-09 Thread Michael Van Canneyt via fpc-pascal
On Tue, 9 Feb 2021, Luis Henrique via fpc-pascal wrote: At https://lists.freepascal.org/pipermail/fpc-devel/2021-February/043569.html I saw the syntax "value: x: y". str(value:6:3, valuestr); What is the name of this and where is it documented? It is documented in the official

[fpc-pascal] Value:x:y syntax

2021-02-09 Thread Luis Henrique via fpc-pascal
At https://lists.freepascal.org/pipermail/fpc-devel/2021-February/043569.html I saw the syntax "value: x: y". > str(value:6:3, valuestr); What is the name of this and where is it documented? I did tests and saw that Y determines the width of the precision part, but I can't see any effect of X.