Re: [fpc-pascal] Primitive Record Wrappers

2016-02-29 Thread wkitty42
On 02/29/2016 10:08 PM, Mazola Winstrol wrote: There is a problem in my design. The code won't compile if i try to specialize with a type which doesn'y supports arithmetic operators e.g String types. apparently i'm missing something... why should arithmetic operators be recognized for strings?

Re: [fpc-pascal] Primitive Record Wrappers

2016-02-29 Thread Mazola Winstrol
2016-02-29 13:16 GMT-03:00 Sven Barth : > Am 29.02.2016 16:13 schrieb "Mazola Winstrol" : > > > > I have noticed that, by using generics, we can't overload arithmetic > operators. > > > > E.g.: > > > > ... > > class operator Negative(A: TNullableType): T; > > ... > > > > class operator TNullableTy

Re: [fpc-pascal] Codepage + class helper raises "Error identifier idents no member ..."

2016-02-29 Thread silvioprog
On Sat, Feb 27, 2016 at 10:13 AM, Bart wrote: > On 2/27/16, Sven Barth wrote: > > > That definitely shouldn't be the case. Please report. > > Done. > http://bugs.freepascal.org/view.php?id=29745 Thank you! :-) -- Silvio Clécio ___ fpc-pascal mailli

[fpc-pascal] Wiki (image) uploading temporarily disabled

2016-02-29 Thread Jonas Maebe
Hi, The tech support scammers discovered that mediawiki's antispam regex doesn't get applied to image descriptions, so they're now attacking us that way. I hope to find a way to block this new attack angle tonight or tomorrow, but until then I've disabled uploading to the wiki for now. So

Re: [fpc-pascal] Primitive Record Wrappers

2016-02-29 Thread Sven Barth
Am 29.02.2016 16:13 schrieb "Mazola Winstrol" : > > I have noticed that, by using generics, we can't overload arithmetic operators. > > E.g.: > > ... > class operator Negative(A: TNullableType): T; > ... > > class operator TNullableType.Negative(A: TNullableType): T; > begin > Result := -1 * A;

Re: [fpc-pascal] Primitive Record Wrappers

2016-02-29 Thread Mazola Winstrol
I have noticed that, by using generics, we can't overload arithmetic operators. E.g.: ... class operator Negative(A: TNullableType): T; ... class operator TNullableType.Negative(A: TNullableType): T; begin Result := -1 * A; end; wouldn't compile with the error "Operator not applicable

Re: [fpc-pascal] Primitive Record Wrappers

2016-02-29 Thread Mazola Winstrol
2016-02-27 14:58 GMT-03:00 silvioprog : > > $MODE DELPHI implies {$H ON} > , so so you > should remove the {$H+}. > > Thanks for the tip! i will remove for the next version. ___ fpc-pascal maillist