BilfFord said:
I'm trying to get a handle on what makes a non standard header non
standard.
Your 'text.h' is a non-standard header. It doesn't matter that all
in it is standard C++. If it's not defined by the Standard, it's
not standard. However, when you asked "am I writing c++", the answer
is still "yes". Whatever we write is what we write, and our headers
while non-standard can still be a perfectly fine C++.
I've been cutting open the header files for my
implementation, and they haven't oozed evil like one would expect. The
following is a header file from jacob navia's lcc:
I honestly have no idea what "jacob navia's lcc" is.
#ifndef __windows_h__
#define __windows_h__
#ifndef __stdlib_h__
#include <stdlib.h>
#endif
#ifndef __string_h__
#include <string.h>
#endif
#include <win.h>
#endif
/* end header post */
This poor fella gets slapped around on the other end of the hallway
because of non standard headers more than Mike Tyson's girlfriends.
I don't understand. Why would he get slapped? Does he claim any
standard compliance? Does he claim to provide a C++ implementation?
In these ten statements, where lies the offense, in particular, when
you and I have no notion what could be in win.h? cordially, bfx
Why do you care what's inside *his* headers? If you need to include
them, include them. If you don't, don't. Furthermore, why do you
care what's in the headers that his headers include? Why should you
be aware of what <win.h> is? What if it's some obscure part of what
he provides to you?
V