<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-crea="font-wrapper" style="font-family: Tahoma; font-size: 16px; direction: ltr">Am Sa., Jul. 15, 2017 21:07 schrieb Jonas Maebe <jonas@freepascal.org>:<blockquote><div>On 15/07/17 20:52, <a target="_blank" href="mailto:lazarus@kluug.net" style="cursor: inherit;">lazarus@kluug.net</a> wrote:<br><blockquote>On one hand, you try to be very fundamental about enums - you say that <br>only declared enum values are valid. And there is no zero value for <br>TMyEnum. TMyEnum is declared as follows:<br><br>TMyEnum = (one = 1, two);<br><br>TMyEnum is not a number so it cannot be initialized to zero.</blockquote><br><br>I have said from the start that it is possible to store invalid values <br>in variables through the use of a.o. pointers (which is what the class <br>zeroing does), explicit typecasts and assembly.<br></div></blockquote><span><br>In this case you must not restrict us to work with invalid values in a deterministic way.<br><br>Ondrej<br></span><blockquote><div><a target="_blank" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" style="cursor: inherit;"></a></div></blockquote></div></body></html>