<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2016-07-28 17:58 GMT+02:00 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Then you will not have this problem; GetValue will always return a 'Default' value.</blockquote></div><br>IMO bad design. You can't use value of not assigned nilable types as same as you can't use not assigned pointers >.<.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div>There is no magic in ^ . Just look at declaration:</div><div><br></div><div>Instance: ^T default;</div><div><br></div><div>you can create alternative nilable struct with:</div><div><br></div><div>FInstance: T default;</div><div>FHasValue: Boolean;</div><div><br></div><div>with that you don't need any ^ operator</div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Best regards,<br>Maciej Izak</div></div></div>
</div></div>