<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 05 Mar 2013, at 12:34, José Mejuto wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: monospace; ">El 05/03/2013 11:23, Howard Page-Clark escribió:<br><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">The code that makes me wonder something is wrong is this one:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote>[...]<br><blockquote type="cite"><br></blockquote><blockquote type="cite">For me (win32, FPC 2.6.2) the output is identical (= "A") whether or not<br></blockquote><blockquote type="cite">Result in TheA() is initialised manually or not. Perhaps 2.7.1 has a<br></blockquote><blockquote type="cite">regression here if it differs for you?<br></blockquote><blockquote type="cite"><br></blockquote><br>The problem is not the different behavior as it is or will be noted in documentation, the problem is the lack of warning of using a not initialized variable,</span></span></blockquote><div><br></div><div>FPC 2.6.2 does give a warning (code is from <a href="http://bugs.freepascal.org/view.php?id=20907#c55064">http://bugs.freepascal.org/view.php?id=20907#c55064</a> ):</div><div><br></div><div><div>$ fpc -vw tt7.pp</div><div>Free Pascal Compiler version 2.6.2 [2013/02/03] for powerpc</div><div>Copyright (c) 1993-2012 by Florian Klaempfl and others</div><div>Target OS: Darwin for PowerPC</div><div>Compiling tt7.pp</div><div>tt7.pp(8,13) Warning: Function result variable does not seem to initialized</div><div>Assembling (pipe) tt7.s</div><div>Linking tt7</div><div>26 lines compiled, 2.6 sec </div><div>1 warning(s) issued</div><div><br></div></div><blockquote type="cite"><span class="Apple-style-span" style="font-family: monospace; ">so it is hard to fix code that works fine in 2.6.x and that could fail with Trunk.</span></blockquote></div><br><div>It could also fail in 2.6.x, just less often.</div><div><br></div><div><br></div><div>Jonas</div></body></html>