5 Sep 23:16
Re: Proposal for Include files/headers
Slawomir Lisznianski <slisznianski <at> c2-lang.org>
2004-09-05 21:16:06 GMT
2004-09-05 21:16:06 GMT
edA-qa wrote: > Rather than use the old C style of just #include I would recommend a > better manner of handling dependencies. I agree that a more robust mechanism would be a good change. Let's see if we can come up with something useful... > What would be nice is a Java style import system, which makes it easier > for new users, and can remove the problem of ordering of dependencies. We have to be very careful in trying to adopt something like the Java "import" model. The Java approach is very suitable for systems that use intermediate language representation (such as byte-codes). In those systems, declaration (header) files and implementation files are blended into one. But let's be ignorant for a while... > (The #include system should also remain since it has other uses than > resolving dependencies). I agree that the preprocessing phase is handy. Some enhancements to the preprocessor, such as support for recursion, would be useful-- generation of boiler plate templates with N-number of parameters would be a snap. > Example: > > #import Math.Matrix //get a single definition > #import Http //get entire namespace(Continue reading)
RSS Feed