Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'll admit right away of not having read the module deisgn documents. I'm basing my comments on teh description given...

It seems to me that the module-interface unit (MIU) would be pretty much the equivalent of present-day header files. So for two modules foo and bar, there is no dependency on the order foo.cpp and bar.cpp are compiled, because only the MIU needs to be compiled for a given module and the design ensures two MIU are isolated. If they are mutually dependent it's a bad design, but teh solution is the same as in Java: you need to build the MIU in the same compiler invocation. (In fact, that would probably happen automatically, using the equivalent of today's -I include directory directive to find MIUs.)

Yes, that means you need to split your module into a clean MIU andthe actual implementation file, just like now you split them in a header file and a cpp file.

Yes, you need MIU to be "available" to be translated to BMI gobally, just like you need header files to be available globally when compiling.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: