[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dylan and OpenGL?



D.G <dogu@mac.com> wrote:
> Bruce Hoult wrote:

>> What are the limitations in C++ that are bugging you?

> One of them is the amount of compiling that has to be done when a file
> just makes reference to a type which in turn uses huge libraries like
> Carbon. Then a class with a hundred lines of code is as slow to compile
> as a major class. It would be nice if the class interfaces were a little
> less dependent on indirect types, eg. [private] members of other classes.

Do you use forward-declarations of classes where possible? eg. using:

class foo;

rather than:

#include <foo.h>

assuming that foo.h contains the full class definition of foo.

-- 
Neil