Re: [fpc-devel] Modifiers...

2024-02-01 Thread Sven Barth via fpc-devel
Am 29.01.2024 um 21:56 schrieb Michael Van Canneyt via fpc-devel: I didn't say I cannot think of a legitimate use. I said it does not make sense to me, as in "I don't understand what people try to accomplish with this modifier". Unfortunately I still don't understand after your explanation what

Re: [fpc-devel] Modifiers...

2024-01-30 Thread Hairy Pixels via fpc-devel
> On Jan 30, 2024, at 8:53 PM, Michael Van Canneyt via fpc-devel > wrote: > > 'yes I do' what exactly ? > > I thought I understood after your previous mail. Now I read your sentence as > an argument for not having a "final" at all, so this is again confusing for > me :/ I stepped in the mi

Re: [fpc-devel] Modifiers...

2024-01-30 Thread Michael Van Canneyt via fpc-devel
On Tue, 30 Jan 2024, Hairy Pixels via fpc-devel wrote: On Jan 30, 2024, at 8:01 PM, Michael Van Canneyt via fpc-devel wrote: It's probably more correct to say that you don't want there to be an override in a descendent class. Offhand I can't think of a use-case, but why not... yes you

Re: [fpc-devel] Modifiers...

2024-01-30 Thread Hairy Pixels via fpc-devel
> On Jan 30, 2024, at 8:01 PM, Michael Van Canneyt via fpc-devel > wrote: > > It's probably more correct to say that you don't want there to be an override > in a descendent class. Offhand I can't think of a use-case, but why not... yes you do, because the descendent doesn't know the class in

Re: [fpc-devel] Modifiers...

2024-01-30 Thread Michael Van Canneyt via fpc-devel
On Tue, 30 Jan 2024, Hairy Pixels via fpc-devel wrote: 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 o

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 the

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 thus

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 pos

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 vir

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 declar

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? "bitpack

Re: [fpc-devel] Modifiers...

2024-01-28 Thread Michael Van Canneyt via fpc-devel
On Wed, 24 Jan 2024, Martin Frb via fpc-devel wrote: 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? Normally,

Re: [fpc-devel] Modifiers...

2024-01-24 Thread J. Gareth Moreton via fpc-devel
Note that for 1), it should be "end.", not "end;" - make sure that isn't causing your error. Subroutine directives like "vectorcall" I think are usable as variable names. Kit On 24/01/2024 22:29, Martin Frb via fpc-devel wrote: https://www.freepascal.org/docs-html/ref/refsu3.html Is this l

[fpc-devel] Modifiers...

2024-01-24 Thread 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? 2) Is there, or has there once been? (found in the synedit highligh