<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That works, the problem is that someone else (or maybe even me) will
come along and remove the second private as part of cleaning up... I
have put a comment there, but I still dont like it.<br>
<br>
Myles Penlington wrote:
<blockquote
cite="mid:74AA9D8C683A2542B20DD5DB15FBF16B7E6DF6@ams-ad1.lan.ams.co.nz"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Signature</title>
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Then
does <o:p></o:p></span></p>
<p class="MsoNormal">type<br>
Taa = class()<br>
private<br>
class var xx : yy;<o:p></o:p></p>
<p class="MsoNormal"> private<br>
zz : integer<br>
public<br>
<br>
<span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Work
as expected? I.e zz is an instance variable?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Myles.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"
lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"
lang="EN-US">
<a class="moz-txt-link-abbreviated" href="mailto:delphi-bounces@delphi.org.nz">delphi-bounces@delphi.org.nz</a> [<a class="moz-txt-link-freetext" href="mailto:delphi-bounces@delphi.org.nz">mailto:delphi-bounces@delphi.org.nz</a>] <b>On
Behalf
Of </b>Rohit Gupta<br>
<b>Sent:</b> Tuesday, 9 October 2007 11:44<br>
<b>To:</b> NZ Borland Developers Group - Delphi List<br>
<b>Subject:</b> [DUG] class variables - bad language definition<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom: 12pt;">Another pitfall for
young
players.<br>
<br>
type<br>
Taa = class()<br>
private<br>
class var xx : yy;<br>
zz : integer<br>
public<br>
<br>
<br>
The xx declaration makes all other variables after it class ones as
well.
I know its documented, but one doesn't realise the impact until after
falling
in the hole. And the hole remains in my code for a future developer to
fall into. This is specially bad after being used to the class
function
declaration which works differently.<br>
<br>
I hate this sort of stuff, the code can not become more robust if a
declaration
of a new variable affects previous declarations.<o:p></o:p></p>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
<p class="MsoNormal"><strong><span
style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: rgb(102, 102, 102);">Rohit
Gupta</span></strong><o:p></o:p></p>
<p class="MsoNormal"><strong><span
style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: rgb(102, 102, 102);">B.E. Elec. M.E. Mem IEEE
Associate IEE</span></strong><o:p></o:p></p>
<p class="MsoNormal"><strong><span
style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: rgb(102, 102, 102);">Technical Manager</span></strong><o:p></o:p></p>
<p class="MsoNormal"><strong><span
style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: rgb(102, 102, 102);">Computer
Fanatics Limited</span></strong><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><strong><span
style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: rgb(102, 102, 102);">Tel</span></strong><span
style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: rgb(102, 102, 102);">
+64 9 4892280</span><o:p></o:p></p>
<p class="MsoNormal"><strong><span
style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: rgb(102, 102, 102);">Fax</span></strong><span
style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: rgb(102, 102, 102);">
+64 9 4892290</span><o:p></o:p></p>
<p class="MsoNormal"><strong><span
style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: rgb(102, 102, 102);">Email
</span></strong><span style="color: rgb(102, 102, 102);"><a
moz-do-not-send="true" href="mailto:rohit@cfl.co.nz"><span
style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: rgb(0, 128, 255);">rohit@cfl.co.nz</span></a></span><o:p></o:p></p>
<p class="MsoNormal"><strong><span
style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: rgb(102, 102, 102);">Web
</span></strong><span style="color: rgb(102, 102, 102);"><a
moz-do-not-send="true" href="http://www.cfl.co.nz/"><span
style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: rgb(0, 128, 255);">www.cfl.co.nz</span></a></span><o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div class="MsoNormal" style="text-align: center;" align="center">
<hr align="center" size="2" width="100%"></div>
</div>
<p class="MsoNormal"><span
style="font-size: 7.5pt; font-family: "Verdana","sans-serif"; color: gray;">This
email and any attachments contain information, which is
confidential and may be subject to legal privilege and copyright. If
you are
not the intended recipient, you must not use, distribute or copy this
email or
attachments. If you have received this in error, please notify us
immediately
by return email and then delete this email and any attachments.</span><span
style="font-size: 10pt; font-family: "Courier New";"> </span><o:p></o:p></p>
</div>
</div>
<font face="Verdana" size="1">Attention:<br>
This communication is confidential and may be legally privileged. If
you are not the intended recipient, please do not use, disclose, copy
or distribute it, other than to return it to us with your confirmation
that it has been deleted from your system.<br>
</font>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<title>Signature</title>
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.2802" name="GENERATOR">
<div align="left">
<div align="left"><strong><font size="2"><font color="#666666"
face="Verdana">Rohit Gupta</font></font></strong></div>
<div align="left"><strong><font size="2"><font color="#666666"
face="Verdana">
B.E. Elec. M.E. Mem IEEE
Associate IEE</font></font></strong></div>
<div align="left"><strong><font size="2"><font color="#666666"
face="Verdana">Technical Manager</font></font></strong></div>
<div align="left"><strong><font color="#666666" face="Verdana" size="2">Computer
Fanatics Limited</font></strong></div>
<div align="left"><strong></strong> </div>
<div align="left"><font color="#666666" face="Verdana" size="2"><strong>Tel</strong>
+64 9 4892280</font></div>
<div align="left"><font color="#666666" face="Verdana" size="2"><strong>Fax</strong>
+64 9 4892290</font></div>
<div align="left"><font color="#666666"><font face="Verdana" size="2"><strong>Email
</strong></font><a href="mailto:rohit@cfl.co.nz"><font color="#0080ff"
face="Verdana" size="2">rohit@cfl.co.nz</font></a></font><font
color="#666666"><font face="Verdana" size="2"><strong></strong></font></font></div>
<div align="left"><font color="#666666"><font face="Verdana" size="2"><strong>Web
</strong></font><a href="http://www.cfl.co.nz/"><font color="#0080ff"
face="Verdana" size="2">www.cfl.co.nz</font></a></font></div>
<div> </div>
<div>
<hr></div>
<div align="left"><span
style="font-size: 7.5pt; color: rgb(153, 153, 153); font-family: Verdana;"><font
size="1"><span style="font-size: 10pt; font-family: 'Courier New';"
lang="EN-NZ"><font color="#000000"><font color="#808080" face="Verdana"
size="1">This email and any attachments contain information, which is
confidential and may be subject to legal privilege and copyright. If
you are not the intended recipient, you must not use, distribute or
copy this email or attachments. If you have received this in error,
please notify us immediately by return email and then delete this email
and any attachments.</font> <o:p></o:p></font></span></font></span></div>
</div>
</div>
</body>
</html>