Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread Ryan Joseph
> On Jun 1, 2019, at 6:00 AM, Michael Van Canneyt > wrote: > > I don't think this syntax is a good idea. > > What with overloads ? > > Procedure MyProc(a:T); > Procedure MyProc(a : TObject); Currently the non-generic gets called in this situation. That’s because non-generic procedures take

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread J. Gareth Moreton
I would personally consider this a compiler error because there's too much ambiguity and assumption involved when choosing one over the other. In my eyes, the correct choice is too unclear. Gareth aka. Kit On Sat 01/06/19 21:41 , Ben Grasset operato...@gmail.com sent: > On Sat, Jun 1, 2019

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread Ben Grasset
On Sat, Jun 1, 2019 at 10:58 AM Sven Barth via fpc-devel < fpc-devel@lists.freepascal.org> wrote: > I personally consider it a worthwhile addition. > What version did Delphi add that in? I honestly had no idea it was a thing. Makes it seem especially strange that they still don't have freestandi

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread Ben Grasset
On Sat, Jun 1, 2019 at 6:00 AM Michael Van Canneyt wrote: > I don't think this syntax is a good idea. > > What with overloads ? > > Procedure MyProc(a:T); > Procedure MyProc(a : TObject); > > How do I know which one will be called ? > I think it would have to work like: if something is a TObject

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread Michael Van Canneyt
On Sat, 1 Jun 2019, Sven Barth via fpc-devel wrote: Michael Van Canneyt schrieb am Sa., 1. Juni 2019, 14:13: On Sat, 1 Jun 2019, Sven Barth via fpc-devel wrote: specialize ClearMem(pt); With implicit specialization: ClearMem(pt); // :) I don't think this syntax is a good idea

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread Sven Barth via fpc-devel
Michael Van Canneyt schrieb am Sa., 1. Juni 2019, 14:13: > > > On Sat, 1 Jun 2019, Sven Barth via fpc-devel wrote: > > >>> > >>> specialize ClearMem(pt); > >>> > >>> With implicit specialization: > >>> > >>> ClearMem(pt); // :) > >> > >> I don't think this syntax is a good idea. > >> > > >

[fpc-devel] ENC28J60 Ethernet Controller AVR/ARM Driver

2019-06-01 Thread Dimitrios Chr. Ioannidis via fpc-devel
Hi,   I started to write a driver ( https://github.com/dioannidis/fp_ethernet_enc28j60.git ) for this chip ( ENC28J60 Ethernet Controller ) first for the AVR platform, ( heavily inspired from the UIPEthernet library ( https://github.com/UIPEthernet/UIPEthernet.git )) and I want to ask the co

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread Martok
>> Really ? >> I wonder what kind of code you write to make this 'super buggy' statement. >> >> I myself write lots of code, and never encountered an issue. >> But then, I normally don't use dubious constructs to begin with. > In fact, we already have several bug reports related to overloading/gen

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread Michael Van Canneyt
On Sat, 1 Jun 2019, denisgolovan wrote: Really ? I wonder what kind of code you write to make this 'super buggy' statement. I myself write lots of code, and never encountered an issue. But then, I normally don't use dubious constructs to begin with. In general of course I agree 100% with

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread Michael Van Canneyt
On Sat, 1 Jun 2019, Sven Barth via fpc-devel wrote: specialize ClearMem(pt); With implicit specialization: ClearMem(pt); // :) I don't think this syntax is a good idea. It's required for Delphi compatibility. Indeed. It gets worse by the day :( Michael. ___

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread Sven Barth via fpc-devel
Michael Van Canneyt schrieb am Sa., 1. Juni 2019, 12:00: > > > On Fri, 31 May 2019, Ryan Joseph wrote: > > > > > > >> On May 30, 2019, at 4:18 PM, Ryan Joseph > wrote: > >> > >> I didn’t realize generic functions were in the trunk. I’m not sure I > got this implemented properly so it requires so

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread denisgolovan
> Really ? > I wonder what kind of code you write to make this 'super buggy' statement. > > I myself write lots of code, and never encountered an issue. > But then, I normally don't use dubious constructs to begin with. > > In general of course I agree 100% with your statement that we need a cl

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread Michael Van Canneyt
On Sat, 1 Jun 2019, Martok wrote: What with overloads ? Procedure MyProc(a:T); Procedure MyProc(a : TObject); How do I know which one will be called ? Once again: FPC needs a defined method resolution order, *and stick with it*. The current ad-hoc inheritance/typeconv/:= overload/overload

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread Martok
> What with overloads ? > > Procedure MyProc(a:T); > Procedure MyProc(a : TObject); > > How do I know which one will be called ? Once again: FPC needs a defined method resolution order, *and stick with it*. The current ad-hoc inheritance/typeconv/:= overload/overload/operator overload mess is a

Re: [fpc-devel] When will the next version of FPC be released?

2019-06-01 Thread Michael Van Canneyt
On Fri, 31 May 2019, Ryan Joseph wrote: On May 30, 2019, at 4:18 PM, Ryan Joseph wrote: I didn’t realize generic functions were in the trunk. I’m not sure I got this implemented properly so it requires some code review but can we try to include “implicitfunctionspecialization” mode swit