<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">Am 2013-03-16 07:13, schrieb Xiangrong
Fang:<br>
</div>
<blockquote
cite="mid:CAP93jB0XVWxavp6ZhWXy38BBnO64XH80fHfmA=CNwqcnODfTfg@mail.gmail.com"
type="cite"><span style="font-family:courier new,monospace">I
would like to do this:<br>
<span style="color:rgb(0,0,153)"><br>
with MyClassInstance <span style="color:rgb(255,0,0)">as mci</span></span></span><span
style="font-family:courier new,monospace"><span
style="color:rgb(0,0,153)"><span style="color:rgb(255,0,0)"><span
style="font-family:courier new,monospace"><span
style="color:rgb(0,0,153)">, SomethingElse</span></span></span>
do begin<br>
Caption := 'A new caption';<br>
for i := 0 to Count - 1 do<br>
<span style="color:rgb(255,0,0)">mci</span>[i] :=
UpperCase(<span style="color:rgb(255,0,0)">mci</span>[i]);<br>
end;</span><br>
<br>
That is, to add an optional "as" clause to the with statement so
that access array element in a structure is made easier.<br>
</span>
<br>
</blockquote>
I fail to see how this would be helpful. <br>
It's just more confusing. <br>
Suddenly there are 2 (or more?) identifiers meaning the same thing.
<br>
If I want to avoid typing a long identifer name multiple times <br>
I would simply select it and copy it to the clipboard.<br>
If someone (I myself?) chose a long identifier name I think it was
for some reason (readability?). <br>
Foiling this by making the code more obscure is not a good idea IMO.<br>
That's making the code a bit more C'ish (harder to read).<br>
You won't cripple down all variables to one letter names A, B, C
only because this is easier to type, won't you?<br>
</body>
</html>