Re: I really hate .NET especially inside Delphi



"Nick Hodges (Borland/DTG)" <nickhodges@xxxxxxxxx> wrote in message news:4522ae71$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Robert Giesecke wrote:
Well, units are absolutely poor compared to namespaces.
That's totally subjective -- what's wrong with them?

I think he refers to the ability (like C#) for a unit to contribute to an arbitrary namespace, decoupling unit name from
namespace, something like:
unit Unit1;
namespace System.Windows.Forms.Foo1;
....
namespace System.Windows.Forms.Foo2;

so all contents in Unit1 is visible to consumers of System.Windows.Forms.Foo namespace, including other units.
This breaks Pascal #1 rule of top-down unit visibility via "uses" (ie: single-pass parser).

Why not? No one complained about it for the 20 years Pascal...
Everybody likes anarchy, at least until facing it <g>

regards
david




In addition -- these are pretty small complaints, really. "Delphi for
.NET sucks" seems a bit of hyperbole relative to them, don't you think?

--
Nick Hodges
Delphi/C# Product Manager - Borland DTG
http://blogs.borland.com/nickhodges


.



Relevant Pages

  • Re: Delphi and the .Net platform
    ... this means you maintain the habit of calling Free where you called ... Once again, if porting existing code, calls to Free are harmless, ... In Delphi, it is not a physical one either. ... take part in the same namespace. ...
    (borland.public.delphi.non-technical)
  • Re: I really hate .NET especially inside Delphi
    ... in Delphi.NET terms this is a package (yeah, yeah, I don't know why ... to a BPL it will compile to a dll, ... will see a namespace called TimsTest with TTestClass in it, ... in a Delphi app in the Uses class you would put ...
    (borland.public.delphi.non-technical)
  • Re: True Name Spaces, when?
    ... which in Delphi many many people do. ... And if you want to put somthing in the System namespace, ... to determine which order to initialize / finalize each module. ...
    (borland.public.delphi.non-technical)
  • Re: Why arent you upgrading?
    ... amounts to an ad hominen attack - you are not finding any fault with ... Look at the namespace thread, or many other threads where many people ... No matter what - Delphi is best in his replies. ... "And this is another reason why I think it's a mistake to have Nick ...
    (borland.public.delphi.non-technical)
  • Re: I really hate .NET especially inside Delphi
    ... Being a customer doesn't mean someone's opinion is automatically right. ... The last changes to D4N namespace support did improve this, making it at least /possible/ to expose a class library with a namespace system that could fit in with the rest of the .NET world. ... But imho it is still too awkward and inflexible, and it is a big problem that code written in Delphi needs to be consumed differently from within Delphi then from other languages. ... In all namespace based .NET languages i am aware of, this is not an issue, and all classes defined in the same namespace can see each other implicitly - even circular. ...
    (borland.public.delphi.non-technical)