[fpc-pascal] Primitive Record Wrappers

Mazola Winstrol mazofeifer at gmail.com
Tue Mar 1 13:51:27 CET 2016

2016-03-01 1:48 GMT-03:00 <wkitty42 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160301/a2a83c33/attachment.html>

More information about the fpc-pascal mailing list