Re: [fpc-devel] Compiler picks wrong overload

2019-05-27 Thread Martok
> More broadly I think the bigger problem is FPC's internal over-eagerness to
> implicitly cast things to other things... for example, if you have a type with
> an ":=" operator overload (or as Delphi calls it, an "Implicit" operator
> overload) from both "Pointer" and "TObject", FPC will always pick the 
> "Pointer"
> one even if given an explicit TObject variable. They (currently) cannot
> co-exist. But certainly, they should be able to, if you ask me.

I still find "nil->Pointer->dynarray->UCS4String" the most hilarious "weight 1"
autoconversion (see 0031215, which is also an overload bug).


-- 
Regards,
Martok


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Compiler picks wrong overload

2019-05-26 Thread Ben Grasset
On Wed, May 22, 2019 at 12:53 PM Pascal Riekenberg 
wrote:

> No one? This is a showstopper!
>

FWIW, you can comment out the new TBytes definitions as a temporary fix.
They are not actually used anywhere in the FPC codebase.

More broadly I think the bigger problem is FPC's internal over-eagerness to
implicitly cast things to other things... for example, if you have a type
with an ":=" operator overload (or as Delphi calls it, an "Implicit"
operator overload) from both "Pointer" and "TObject", FPC will always pick
the "Pointer" one even if given an explicit TObject variable. They
(currently) cannot co-exist. But certainly, they should be able to, if you
ask me.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Compiler picks wrong overload

2019-05-22 Thread Pascal Riekenberg
No one? This is a showstopper!

Regards
Pascal

> Pascal Riekenberg  hat am 21. Mai 2019 um 12:54 
> geschrieben:
> 
> 
> Is someone working on these two issues?
> 
> https://bugs.freepascal.org/view.php?id=35580
> https://bugs.freepascal.org/view.php?id=35576
> 
> Lazarus is not usable with fpc trunk atm.
> 
> Regards
> Pascal
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] Compiler picks wrong overload

2019-05-21 Thread Pascal Riekenberg
Is someone working on these two issues?

https://bugs.freepascal.org/view.php?id=35580
https://bugs.freepascal.org/view.php?id=35576

Lazarus is not usable with fpc trunk atm.

Regards
Pascal
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel