<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p><br>
</p>
<p>I don't mean to start a war ;) but there are cases where it makes
perfect sense to declare within code:</p>
<p><br>
</p>
<p>For I As Integer=1 To 10</p>
<p>Next</p>
<p><br>
</p>
<p>Makes it very easy to move the code around to another function
and/or re-factor. You just worry abut the piece of code. You take
the declaration with you</p>
<p><br>
</p>
<p>Just an idea ;)</p>
<p>David</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">El 11/12/18 a las 21:49, Jussi Lahtinen
escribió:<br>
</div>
<blockquote type="cite"
cite="mid:CAFJMe7Q_179cGcuTNn5y_inzzycZmW=FCKsSDvEJgvBxAJsKxg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Why?</div>
<div>It's exactly the same code, but in different place. For me
personally, it doesn't matter at all.</div>
<div><br>
</div>
<div><br>
</div>
<div>Jussi<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Tue, Dec 11, 2018 at 7:01 PM Gianluigi <<a
href="mailto:bagonergi@gmail.com" moz-do-not-send="true">bagonergi@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr"><br>
<br>
<div class="gmail_quote">
<div dir="ltr">Il giorno mar 11 dic 2018 alle ore 09:34
Fabien Bodard <<a href="mailto:gambas.fr@gmail.com"
target="_blank" moz-do-not-send="true">gambas.fr@gmail.com</a>>
ha scritto:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px
0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Allow local
variable declaration anywhere in the function. The
local<br>
symbol still has a function scope, but can be used
after its<br>
declaration only.<br>
<br>
hum....<br>
<br>
and now ?<br>
<br>
{Integer}MyVar = 1+1 ?<br>
<br>
:-P<br>
<br>
<br>
-- <br>
Fabien Bodard<br>
</blockquote>
<div><br>
</div>
<div>It is like in other languages, I personally do not
like it because it makes more difficult to understand
the code of others. :-(<br>
</div>
<div><br>
</div>
<div>Regards</div>
<div>Gianluigi<br>
</div>
</div>
</div>
</div>
<br>
----[ Gambas mailing-list is hosted by <a
href="https://www.hostsharing.net" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a>
]----<br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">
----[ Gambas mailing-list is hosted by <a class="moz-txt-link-freetext" href="https://www.hostsharing.net">https://www.hostsharing.net</a> ]----
</pre>
</blockquote>
</body>
</html>