Re: [fpc-devel] Public modifier: brackets or not?
Bart via fpc-devel schrieb am So., 23. Feb. 2020, 16:35: > However, this will compile also: > > Function Second : Real; [Public name ’second’]; > begin > Second := 1; > end; > > So, what is the correct syntax? > Both are correct. The brackets allow a comma separated list of directives. However as Mattias wrote this syntax conflicts with attributes and thus is disabled if modeswitch PrefixedAttributes is enabled. Regards, Sven > ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Public modifier: brackets or not?
On Sun, Feb 23, 2020 at 4:48 PM Mattias Gaertner via fpc-devel wrote: > The [] is the old syntax. > It bites attributes, so better not use it. Ok, I updated a wiki example that used the old syntax. -- Bart ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Public modifier: brackets or not?
On Sun, 23 Feb 2020 16:35:28 +0100 Bart via fpc-devel wrote: > Hi, > > I'm a little confused. > > From: > https://www.freepascal.org/docs-html/ref/refsu81.html > > This page gives 2 examples. > > Function Second : Real; [Public]; > begin > Second := 1; > end; > > and > > Function Second : Real; Public name ’second’; > begin > Second := 1; > end; > > In the first, Public is in brackets, in the second it is not. > > However, this will compile also: > > Function Second : Real; [Public name ’second’]; > begin > Second := 1; > end; > > So, what is the correct syntax? The [] is the old syntax. It bites attributes, so better not use it. Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
[fpc-devel] Public modifier: brackets or not?
Hi, I'm a little confused. From: https://www.freepascal.org/docs-html/ref/refsu81.html This page gives 2 examples. Function Second : Real; [Public]; begin Second := 1; end; and Function Second : Real; Public name ’second’; begin Second := 1; end; In the first, Public is in brackets, in the second it is not. However, this will compile also: Function Second : Real; [Public name ’second’]; begin Second := 1; end; So, what is the correct syntax? -- Bart ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Typo in docs (TArray)
Op 2020-02-23 om 14:55 schreef Bart via fpc-devel: On Sun, Feb 23, 2020 at 2:08 PM Marco van de Voort wrote: Docs are mostly unversioned, so there is only "trunk" atm. I corrected it in SVN Finding where is what in https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/?root=docs isn't always that easy. I just open the relevant unit's xml, and then do a search for a phrase. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Typo in docs (TArray)
On Sun, Feb 23, 2020 at 2:08 PM Marco van de Voort wrote: > Docs are mostly unversioned, so there is only "trunk" atm. I corrected > it in SVN Finding where is what in https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/?root=docs isn't always that easy. Thanks for fixing. -- Bart ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Typo in docs (TArray)
Op 2020-02-23 om 13:56 schreef Bart via fpc-devel: https://www.freepascal.org/docs-html/rtl/sysutils/tarray.html "it is not needed in Free Pascal, where 2 array types are equal if they element types are equal" "they" should be "their" I was unable to find the trunk version of this, so I'm unsure whether this might already be fixed. Docs are mostly unversioned, so there is only "trunk" atm. I corrected it in SVN ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
[fpc-devel] Typo in docs (TArray)
Hi, https://www.freepascal.org/docs-html/rtl/sysutils/tarray.html "it is not needed in Free Pascal, where 2 array types are equal if they element types are equal" "they" should be "their" I was unable to find the trunk version of this, so I'm unsure whether this might already be fixed. -- Bart ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Possible bug in fpc_round_real for softfloat?
Am 18.02.20 um 13:26 schrieb Alexander Hofmann via fpc-devel: Dear all, while investigating a bug in an application designed for ARM with floating point emulation enabled, I stumbled upon the following problem: Thanks for reporting and providing a fix, I committed it in r44235. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel