Hi Glynn, Thank you for your thoughts. I agree with you. For readability,
the strings_equal function would be better than the conditional:
if (strcmp (s1, s2) == SAME)
puts ("They're the same.");
else
puts ("They differ.");
This statement has, I think, a good point that the strings_equal function
may not have. My statement avoids the overhead of a function call.
I'm sorry for writing a confusing letter. I know how "=" differs from
"==". When I said that I would prefer an equal sign, I meant that in C,
I would replace the strcmp() function with a relational equal sign.
I have read that C programmers sometimes do so much low-level programming
that they forget how to think very abstractly. I always try to think
about objects and abstract data types. The more generally I think, the more
information I can hide. Although I'm only beginning to learn object-
oriented programming, I've always tried to make my subprograms like black
boxes. You put something into a box. Another thing pops out, but you
don't need to know what happens in the box.
Warm wishes,
Bill