2016-03-01 1:48 GMT-03:00 <wkitt...@windstream.net>:
> 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? that doesn't make sense? arithmetic operators are > for numerics not strings... > > The operator shouldn't be recognized for strings. The problem is that we are using a generic record for defining a nullable type. So, we can't make a subclass to define operators applicable only for numeric types.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal