opaque style question

C

CBFalconer

Dan said:
.... snip ...

Who said the user can read the header? Chapter and verse, please.

They do. They also do other things that are not considered
kosher. How many compilers do you know that do not use physical
header files?
Anyway, *your* definition of type opacity is at odds with the
common one: a type whose definition is not documented (C header
files don't count as documentation). FILE is the canonical C
example of opaque type. As usual C helps people to avoid
shooting themselves in the foot but doesn't even try to prevent
them from doing that.

Since we disagree on the definition, there is no point in arguing
about the details. I can create things that satisfy my
definition.
 
D

Dan Pop

In said:
They do. They also do other things that are not considered
kosher. How many compilers do you know that do not use physical
header files?

They need not be in human readable format (ever heard of precompiled
headers?). Furthermore, the definition of __FILE can be built into
the compiler, rather than provided in <stdio.h>. It's up to the
implementor. __FILE is in the implementation name space, therefore
its definition can be always in scope, regardless of what headers
are included.
Since we disagree on the definition, there is no point in arguing
about the details. I can create things that satisfy my
definition.

Only if you destroy the source code after compiling it ;-)

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,365
Latest member
BurtonMeec

Latest Threads

Top