On Tuesday 26 February 2002 14:31, Brent Dax wrote: > But they'll know about char* unless this is their first C program. I > don't think we should expect them to know which of our types should be > used as pointers and which shouldn't. > > Look at it this way. Pro: it makes things simpler for embedders and > extenders. Con: it isn't quite the same as the way types are done > internally. Which is more important?
Depending on how you're wired, it makes things more complex on the outside. You've, in essence, doubled the number of types that need to be known. If any type needs to be passed by reference, you can't simply & and * it - you have to determine what the new, proper type is. (Well, you don't have to, unless you've one of the picky compilers, which makes a lot of this discussion moot.) Embedders and extenders understand pointers and addresses. What's more important is hiding the guts behind the label, not what the label is. -- Bryan C. Warnock [EMAIL PROTECTED]