在 Wed, 22 Apr 2009 16:55:44 +0800,bearophile <[email protected]> 写道:

The current module&package system of D2 needs to be fixed, it has some conceptual/semantic/logic holes. It looks like the result a good design stopped mid-way.

I have discussed them three times in the past

Yes, the package does not offer us enough functionalities. However, only saying "I have discussed/talked/stated/complained something XXX times" does nothing good to the current state. Contrarily, I prefer one list the reasons of why current one is broken and corresponding sophisticated solutions. If the proposer himself didn't get any sound plan, then he'd better raise an open question in this newsgroup.

I also have missed your discussions about the package system as some other D users. What are they?

For me, I find the following questionable parts:
1. loose the restriction of same package accessing of private members. If I remember correctly, MiniD suffers from it and that disallow MiniD source to be organized in a better way.

But I doubt if the restriction were lifted, current private qualifier will become very restrictive useful.

e.g. In package: mylib.Framework.GUI class "Widget" may have some private members don't want to be accessible by mylib.Framework.GUI.Dialog

2. The diagnose message does very little help.

3. There are some bizarre compiler bugs.
   e.g. http://d.puremagic.com/issues/show_bug.cgi?id=1592

Reply via email to