Re: [fpc-devel] Modifiers...

2024-01-29 Thread Hairy Pixels via fpc-devel
> On Jan 30, 2024, at 3:56 AM, Michael Van Canneyt via fpc-devel > wrote: > > Unfortunately I still don't understand after your explanation what adding > 'final' is supposed to accomplish. It may well be legitimate, but I have > currently no opinion as I don't understand it. Final means

Re: [fpc-devel] Modifiers...

2024-01-29 Thread Hairy Pixels via fpc-devel
> On Jan 29, 2024, at 3:53 PM, Sven Barth via fpc-devel > wrote: > > A person that overrides virtual methods does not always have control over > whether the method had been declared as virtual. With "final" the user can > tell the compiler that this method won't be overriden anymore and

Re: [fpc-devel] Modifiers...

2024-01-29 Thread Michael Van Canneyt via fpc-devel
On Mon, 29 Jan 2024, Sven Barth via fpc-devel wrote: over whether the method had been declared as virtual. Hm. That makes no sense at all to me ? You normally add override only when you know the base class has virtual. Otherwise, don't add virtual. The compiler will tell you if it was

Re: [fpc-devel] Modifiers...

2024-01-29 Thread Sven Barth via fpc-devel
Am 29.01.2024 um 21:18 schrieb Michael Van Canneyt via fpc-devel: On Mon, 29 Jan 2024, Sven Barth via fpc-devel wrote: Am 28.01.2024 um 12:14 schrieb Michael Van Canneyt via fpc-devel: 2) Is there, or has there once been? (found in the synedit highlighter)   final final comes after

Re: [fpc-devel] Modifiers...

2024-01-29 Thread Michael Van Canneyt via fpc-devel
On Mon, 29 Jan 2024, Sven Barth via fpc-devel wrote: Am 28.01.2024 um 12:14 schrieb Michael Van Canneyt via fpc-devel: 2) Is there, or has there once been? (found in the synedit highlighter)   final final comes after virtual/dynamic. Its supposed to stop you from overriding a method.

Re: [fpc-devel] Modifiers...

2024-01-29 Thread Sven Barth via fpc-devel
Am 28.01.2024 um 12:14 schrieb Michael Van Canneyt via fpc-devel: 2) Is there, or has there once been? (found in the synedit highlighter)   final final comes after virtual/dynamic. Its supposed to stop you from overriding a method. Which is a bit strange because then you should not

Re: [fpc-devel] Modifiers...

2024-01-29 Thread Sven Barth via fpc-devel
Am 24.01.2024 um 23:29 schrieb Martin Frb via fpc-devel: https://www.freepascal.org/docs-html/ref/refsu3.html Is this list complete/correct? 1) It lists bitpacked, but     program foo; var  bitpacked: integer;  begin end; gives an error. I thought modifiers can be used as var names?