Re: [fpc-pascal] Implicit Operator Overloading

2016-03-06 Thread Sven Barth
Am 06.03.2016 22:09 schrieb "Mazola Winstrol" : > > Hello, > > Fpc: 3.0 > > Should the compiler to allow the definition of two operator overloading with the same parameters and diferent result types? > > e.g: > > code > > TMyRecord record > class operator

Re: [fpc-pascal] Fpc Bug 3.0: Generics and Operator Overloading

2016-03-06 Thread Mazola Winstrol
2016-03-06 19:48 GMT-03:00 Mazola Winstrol : > Done. Issued as #0029792. > > The link is wrong. =) Issued here: #0029792 ___ fpc-pascal

Re: [fpc-pascal] Fpc Bug 3.0: Generics and Operator Overloading

2016-03-06 Thread Mazola Winstrol
2016-03-06 17:45 GMT-03:00 Sven Barth : > Yes, that's a bug. Please report. > > Regards, > Sven > > Done. Issued as #0029792. Regards ___ fpc-pascal maillist -

[fpc-pascal] Implicit Operator Overloading

2016-03-06 Thread Mazola Winstrol
Hello, Fpc: 3.0 Should the compiler to allow the definition of two operator overloading with the same parameters and diferent result types? e.g: code TMyRecord record class operator Implicit(A: TMyRecord): Real; class operator Implicit(A: TMyRecord): Integer; end;

Re: [fpc-pascal] Fpc Bug: Type specialization with Generics and Operator Overloading in Diferent Units

2016-03-06 Thread Sven Barth
Am 06.03.2016 19:55 schrieb "Mazola Winstrol" : > > Hello, > > Fpc version: 3.0 (the same included with lazarus 1.6). > > > Please confirm if it is a bug: > > If i declare a generic record with overloaded add operation, i need to specialize the type in the same unit for the

Re: [fpc-pascal] Fpc Bug 3.0: Generics and Operator Overloading

2016-03-06 Thread Sven Barth
Am 06.03.2016 19:42 schrieb "Mazola Winstrol" : > > Hello, > > Fpc version: 3.0 (the one included with Lazarus 1.6). > > Please confirm if it is a bug: it seems the compiler doesn't handle operator overloading properly when using generic record with local specializations.

Re: [fpc-pascal] Bls: Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)

2016-03-06 Thread Sven Barth
Am 06.03.2016 17:00 schrieb "Serguei TARASSOV" : > >> So in my taste the {$MODE DELPHI} should have been support not only > >> language > >> features but all common libraries too, at least RTL/DB. All FPC > >> extension/modifications could be added in FPC mode. Not easy but >

[fpc-pascal] Fpc Bug: Type specialization with Generics and Operator Overloading in Diferent Units

2016-03-06 Thread Mazola Winstrol
Hello, Fpc version: 3.0 (the same included with lazarus 1.6). Please confirm if it is a bug: If i declare a generic record with overloaded add operation, i need to specialize the type in the same unit for the compiler recognize the overloading. === Code === unit MyRecordDefinition; {$mode

[fpc-pascal] Fpc Bug 3.0: Generics and Operator Overloading

2016-03-06 Thread Mazola Winstrol
Hello, Fpc version: 3.0 (the one included with Lazarus 1.6). Please confirm if it is a bug: it seems the compiler doesn't handle operator overloading properly when using generic record with local specializations. = Code = unit Test; {$mode delphi} type TMyRecord = record class

Re: [fpc-pascal] *** GMX Spamverdacht *** Re: Bls: Bug in FPC 3.0.0

2016-03-06 Thread Jürgen Hestermann
Am 2016-03-06 um 17:00 schrieb Serguei TARASSOV: > You're right there are many language specific forums but English became these > standard "in fact". I see the trend of last 10 years when Russian developers > who lived in Russia write yours blogs in English only. > Sad but c'est la vie...

Re: [fpc-pascal] Bls: Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)

2016-03-06 Thread Serguei TARASSOV
Michael Van Canneyt wrote > Tut ti vibral plohoi primer, po-moemu... :) > > A bad example. Plenty of language-specific forums exist. > They live, and no-one denies them their existence. Ты прав, есть много локализованных форумов, но... You're right there are many language specific forums but

Re: [fpc-pascal] How do I test the testfppdf on Windows?

2016-03-06 Thread Luca Olivetti
El 06/03/16 a les 10:15, Michael Van Canneyt ha escrit: Strange, because if I recall correctly it was tested with Cyrillic, and that worked ? Later I will try with other readers. Please do, I'd welcome any hints as to what could be wrong ! (evince is one of the readers that was used to

Re: [fpc-pascal] Bls: Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)

2016-03-06 Thread Michael Van Canneyt
On Sun, 6 Mar 2016, Serguei TARASSOV wrote: I don't blame someone at all. My point is only the regret about the absent of standards on the language and common libraries like in C/C++. When there is no standards in law "de jure", the most popular implementation becomes the "standard" in fact.

Re: [fpc-pascal] Bls: Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)

2016-03-06 Thread Serguei TARASSOV
Michael Van Canneyt wrote >> The Delphi way is less poor but both are risky. > Oh, why is that ? I.e. because of third-party frameworks. When programmer stays with FPC and its libraries only, the support and the compatibility are not a big problem (but some libraries become abandoned or some bugs

Re: [fpc-pascal] How do I test the testfppdf on Windows?

2016-03-06 Thread Michael Van Canneyt
On Sat, 5 Mar 2016, silvioprog wrote: Hm. This is strange, the code does not use interfaces at all. The compilation hints/warnings do not really present me with a hint as to what could be wrong. Attached patch to fix warns/hints. (need to test it with FPC 2.6, I tested only in 3.0)

Re: [fpc-pascal] How do I test the testfppdf on Windows?

2016-03-06 Thread Michael Van Canneyt
On Sun, 6 Mar 2016, Graeme Geldenhuys wrote: On 05/03/2016 19:30, silvioprog wrote: Attached patch to fix warns/hints. (need to test it with FPC 2.6, I tested only in 3.0) Incidently, fppdf was only developed and tested with FPC 2.6.4 (FPC 3.0 was never used). I did some fixes for 3.0

Re: [fpc-pascal] How do I test the testfppdf on Windows?

2016-03-06 Thread Graeme Geldenhuys
On 05/03/2016 19:30, silvioprog wrote: Attached patch to fix warns/hints. (need to test it with FPC 2.6, I tested only in 3.0) Incidently, fppdf was only developed and tested with FPC 2.6.4 (FPC 3.0 was never used). Regards, Graeme ___

Re: [fpc-pascal] How do I test the testfppdf on Windows?

2016-03-06 Thread Michael Van Canneyt
On Sat, 5 Mar 2016, Jesus Reyes A. wrote: On Sat, 05 Mar 2016 14:03:49 -0600, Michael Van Canneyt wrote: This is what I get with the normal test font: http://www.freepascal.org/~michael/test.pdf Can you please try with the original font too, please ? (freesans is

Re: [fpc-pascal] How do I test the testfppdf on Windows?

2016-03-06 Thread Graeme Geldenhuys
On 05/03/2016 20:30, silvioprog wrote: "The font 'Times' contains a bad /BBox." Can you please try with the original font too, please ? (freesans is freely available) Yes. Do you downloaded it from http://ftp.gnu.org/gnu/freefont/freefont-ttf.zip ? If so, even using this file above I

Re: [fpc-pascal] Bitcounting

2016-03-06 Thread David W Noon
On Sat, 5 Mar 2016 19:03:24 +0100, Bart (bartjun...@gmail.com) wrote about "[fpc-pascal] Bitcounting" (in ): > Does FreePascal have a routine for counting bits? [snip] > Surely this can be done better? If you don't mind a bit of

Re: [fpc-pascal] How do I test the testfppdf on Windows?

2016-03-06 Thread Jesus Reyes A.
On Sat, 05 Mar 2016 14:03:49 -0600, Michael Van Canneyt wrote: This is what I get with the normal test font: http://www.freepascal.org/~michael/test.pdf Can you please try with the original font too, please ? (freesans is freely available) If that works, it would

Re: [fpc-pascal] Bitcounting

2016-03-06 Thread Jesus Reyes A.
En Sat, 05 Mar 2016 12:03:24 -0600, Bart escribió: Hi, Does FreePascal have a routine for counting bits? So that e.g. BitCount(%100110011) gives 5 (number of bits that are 1)? I came up with (extracted from IntToBin()): function BitCount(N: Int64): Integer; var