[fpc-pascal] Re: [Bulk] Re: Namespaces Support
Reimar Grabowski
reimgrab at web.de
Tue Oct 29 10:34:56 CET 2013
On Mon, 28 Oct 2013 21:48:33 -0400
Dmitry Boyarintsev <skalogryz.lists at gmail.com> wrote:
> Is it much different than just extending the prefix "M" to "MFP"?
Of course it is not, actually it's about the same, as you know. IMHO it's not even a feature just another horrible idea of the Delphi guys used to get their VCL and FM stuff working and of course it was an entry for the 'new features' list of the Delphi release.
Pascal already has namespaces and they can clash. The 'new' namespaces can clash, too.
- two units with the same name => clash
- two prefixed units with the same prefix and the same name => clash (less likely than above)
- two units with the same name in two namespaces with the same name => clash (same as above)
It's just another 'stay compatible thing'. And that's the reason why it will be implemented no matter what. So arguing against it is a waste of time.
I'd be a lot happier if the 'compatability features' would be only implemented in mode Delphi but most likely it's easier not to and it reduces the risk of fragmentation.
R.
More information about the fpc-pascal
mailing list