K
Keith Thompson
[...]William Hughes said:Yes, but all you are saying is that a function of the form
do_something_to_object(object)
should not return an object (in C an object is a pointer).
In C, an object is a "region of data storage in the execution
environment, the contents of which can represent values" (C99 3.14).
A pointer variable, or a variable of any type, is an object; a pointer
value is not. I'm not sure what you meant by "object", but you might
consider choosing a different term.
<OT>BTW, C++ uses a very similar definition of "object", one that's
not related to "object-oriented" programming.</OT>