On 31 Jul 2010, at 06:53, Frank Heckenbach wrote:
So if I understand you correctly now, the OS interfaces span so many units. Now I understand why you suggested to output them all to a single C++ file (since they probably change rarely, only with upgrades, and then all at once).
Can't you just put them all in a single unit, or would it become so large that you couldn't compile it (for memory reasons or so)?
Yes, that is possible and there is in fact such a unit (MacOSAll). Some people however prefer to only import what they need rather than everything at once.
Another idea (which, if possible, works now, and might also be necessary for a future GPC, if any), is to reduce the number of dependencies (maybe requiring some restructuring). I find it hard to believe that really every unit requires all previous ones.
The units already only contain the dependencies they need. Restructuring them is not really an option, because they are straight translations of C headers (so that would make updating them to newer versions much more difficult).
Jonas