Re: [fpc-devel] WordBool or SmallInt ?

2023-12-29 Thread Sven Barth via fpc-devel
Martin Frb via fpc-devel schrieb am Fr., 29. Dez. 2023, 20:38: > fpc 3.2.3 > The below prog prints 3 times: 11, -1 (signed values) > > https://www.freepascal.org/docs-html/current/ref/refsu4.html#x26-250003.1.1 > > Free Pascal also supports the ByteBool, WordBool, LongBool and QWordBool > type

Re: [fpc-devel] fpdoc path + system.uitypes problems.

2023-12-29 Thread Michael Van Canneyt via fpc-devel
On Fri, 29 Dec 2023, Marco van de Voort via fpc-devel wrote: Op 27/12/2023 om 13:37 schreef Marco van de Voort via fpc-devel: - The short description in the overview (#rtl) page still doesn't appear , After some debugging, my guess is that in this specific case the path chopping code in

Re: [fpc-devel] fpdoc path + system.uitypes problems.

2023-12-29 Thread Marco van de Voort via fpc-devel
Op 27/12/2023 om 13:37 schreef Marco van de Voort via fpc-devel: - The short description in the overview (#rtl) page still doesn't appear , After some debugging, my guess is that in this specific case the path chopping code in TDocNode.CreateChildren at dglobals:455 and further is to blam

[fpc-devel] WordBool or SmallInt ?

2023-12-29 Thread Martin Frb via fpc-devel
fpc 3.2.3 The below prog prints 3 times: 11, -1   (signed values) https://www.freepascal.org/docs-html/current/ref/refsu4.html#x26-250003.1.1 Free Pascal also supports the ByteBool, WordBool, LongBool and QWordBool types. These are of type Byte, Word, Longint or Int64, Besides the fact that a

[fpc-devel] Ascending order of enum vals

2023-12-29 Thread Martin Frb via fpc-devel
Enums must be ascending. Otherwise a compiler note will be issued... Or not. Below prog gives project1.lpr(4,32) Note: Values in enumeration types have to be ascending But if the values are cast first, then no warning. The 2nd line will print 255, 0,-2 => which is not ascending. program Projec