2 ms·
#include and #import are nearly identical. Both simply take the contents of the file you point them at and blindly copy that text into your source file at that
by mikeash 14y ago
#include and #import are nearly identical. Both simply take the contents of the file you point them at and blindly copy that text into your source file at that location. The only difference is that #import will ignore subsequent attempts to insert the same file, while #include will obediently insert the same contents over and over again.
Sadly, there's no such thing as "Standardized Obj-C", and Apple's version is about as close as it comes. They basically own the language.
- varikin 14y agoHmmm...I thought there was a bit more to #import than that, but good to know.