Re: Same import lines again and again
I always import/#include/use/whatever everything each file will need in a project even if its not necessary. It has no overhead and there are no consequences of doing it, and evry programming language I know has built-in optimizations to get rid of duplicated code in the generated code. C++ has #pragma once and #ifdef/#endif, for example. So I can #include <iostream> as many times as I like and it will only be included once in my whole program.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector