<div dir="ltr">On Sat, Oct 26, 2013 at 11:37 PM, Fabrício Srdic <span dir="ltr"><<a href="mailto:fabricio.srdic@gmail.com" target="_blank">fabricio.srdic@gmail.com</a>></span> wrote:<span style="color:rgb(80,0,80)">.</span><br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im">
<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 class="gmail_extra"><div class="gmail_quote">

<div></div></div></div></div></blockquote></div><div><br>We can't nest units to form a <span lang="en"><span>hierarchical content. With namespaces, we can. Furthermore, namespaces can be used to disambiguate identifiers with the same name, eliminating the need to prefix our identifiers. It's a pure techinical argument. This is not about "just because </span></span>enterprise-class platforms have them".<br>
</div></div></div></div></blockquote><div>I believe only global scope identifiers needs to be prefixed? Yet again, it's not problem for pascal from the start as specifying a unit name resolves the problem in the first place:</div>
<div><br></div><div>uses unitA, unitB;</div><div><br></div><div>t:=unitA.calcFunc(param1) + unitB.calcFunc(param2); <br></div><div><br></div><div>any locally scoped-identifiers (i.e. object/class/record fields, class methods) doesn't need prefixes.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>
</div><div class="im"><div><span style="color:rgb(34,34,34)">Yes, i had no problems while working with D2009 and my units weren't unclear. But with the use of the namespace feature, organizing my code got much better and new possibilities were added.</span></div>
</div></div></div></div></blockquote><div>So, if you've the code reorganized to D2010, is there a sample, from your personal experience, where re-namespacing actually helped (by saving time and/or somebody's efforts)?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">They couldn't use Delphi 6 forever, as the Windows and the hardware changes more and more. What will happen when they have to change?<br>
</div><div class="gmail_extra"><span lang="en"><span>
</span></span></div></div></blockquote></div><br></div><div class="gmail_extra">Very true! They can't, especially if they want a new target platform.</div><div class="gmail_extra">This is there FPC comes into play with its carefully guarded backward compatibility. (who knows may be {$mode goodolddelphi} will show up}! </div>
<div class="gmail_extra">So at the time, when they'll have to get away from D-Old, they'll have 2 options - rewrite a lot of code and jump to D-New or rewrite none of the code and jump to FPC.</div><div class="gmail_extra">
Either jumps would require the same amount of testing efforts anyway.</div><div class="gmail_extra"><br></div><div class="gmail_extra">thanks,</div><div class="gmail_extra">Dmitry</div></div>