[fpc-pascal] Primitive Record Wrappers
Mazola Winstrol
mazofeifer at gmail.com
Sat Feb 27 18:55:33 CET 2016
2016-02-27 0:49 GMT-03:00 Dmitry Boyarintsev <skalogryz.lists at gmail.com>:
> On Fri, Feb 26, 2016 at 10:38 PM, Mazola Winstrol <mazofeifer at gmail.com>
> wrote:
>
>> In the code bellow, the generic type TNullableTyple is implemented (and
>> incomplete for now).
>>
> How to reset TNullableType to Null value? HasValue seems to be read-only.
>
In the last version, there is two ways:
var
NullInt: TNullable<Integer>;
begin
NullInt.Clear; // Method 1
NullInt := nil; // Method 2
end;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160227/618992d9/attachment.html>
More information about the fpc-pascal
mailing list