Re: Delphi - What needs looking at in .NET, and ok the namespaces again
- From: Robert Giesecke <spam@xxxxxxxxx>
- Date: Wed, 11 Oct 2006 18:16:42 +0200
Chad Z. Hower wrote:
Ok - since someone asked, I'll start posting them one by one. First
entry is there too, and its namespaces. :)
http://www.kudzuworld.com/blogs/DelphiNETbar/
Interested to know what changes could be made to Delphi to work better
with .NET? Here is a dynamic and updated commentary, blow by blow.
Nice idea! :-)
I can't comment on your article (or I am too stupid for it *g* ), so I'll comment here.
The namespace issues could be solved very easy and in an elegant way, methinks.
First, there's no need to *force* Delphi.Net to "use" units.
Both usages should be possible. The classic unit name based uses clause or the .Net-ish namespace uses.
When having a D.Net unit "Some.Namespace.Unit1" one should be able to use it this way:
uses Some.Namespace;
or
uses Some.Namespace.Unit1;
Then, the unit attribute which all D.Net classes are marked with, is basically unnecessary.
You could add all *meta data* right into the assembly manifest.
There you could place the information which class has been placed in which unit.
Another thing to put there would be things like public type aliases.
Now, the compiler knows what "units" are inside a D.Net assembly and which type is declared in which unit.
The point behind this is, that there should be no need to reference the RTL lib (Borland.Delphi.dll) without using anything from it on purpose.
Also there should be a compiler switch which enables or disables things like the creation of meta classes for every class, and it should be switched off by default.
Now, a new Delphi.Net package w/o any Delphi specific RTL stuff (like meta classes) will have no reference on a specific RTL lib. Thus you could use Delphi.Net assemblies, compiled from different compiler versions.
Would be a good start to be a lot less painish than the current compiler.
.
- Follow-Ups:
- Re: Delphi - What needs looking at in .NET, and ok the namespacesagain
- From: Brian Moelk
- Re: Delphi - What needs looking at in .NET, and ok the namespacesagain
- From: Chad Z. Hower
- Re: Delphi - What needs looking at in .NET, and ok the namespacesagain
- References:
- Delphi - What needs looking at in .NET, and ok the namespaces again
- From: Chad Z. Hower
- Delphi - What needs looking at in .NET, and ok the namespaces again
- Prev by Date: Re: New interim CEO at McAfee is...
- Next by Date: Re: New interim CEO at McAfee is...
- Previous by thread: Delphi - What needs looking at in .NET, and ok the namespaces again
- Next by thread: Re: Delphi - What needs looking at in .NET, and ok the namespacesagain
- Index(es):
Relevant Pages
|
Loading