[fpc-pascal] Generic type conflicts

Ryan Joseph genericptr at gmail.com
Sat Nov 2 16:26:21 CET 2019



> On Nov 2, 2019, at 11:06 AM, Cyrax via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> You need to do a explicit typecasting.
> 
> ...
> fac:=Sqrt(Sqr(TScalar(x)) + Sqr(TScalar(y)));
> ...
> fac:=1.0/TScalar(fac);

Doesn't work. Try running the example.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list