[fpc-devel] "Default" discussion for SmartPointers etc

Maciej Izak hnb.code at gmail.com
Thu Jul 28 17:57:12 CEST 2016


2016-07-28 17:49 GMT+02:00 Maciej Izak <hnb.code at gmail.com>:

> === code begin ===
>
> var
>   n: TNilable<TRec>;
> begin
>   {
>
>    ... let say that n is assigned somewhere, assume that n.HasValue = true
>
>   }
>   x.foo1 := 10;
>   x.foo2 := 'abc';
> end.
>
> === code end ===
>

small typo. n instead of x ;)


-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160728/864a4dc7/attachment.html>


More information about the fpc-devel mailing list