First-class Citizen - Second and Third Class Objects

Second and Third Class Objects

Raphael Finkel offers definitions of second and third class objects (or, as he calls them, values). However, his definition of "first class object" is contrary to other authors': specifically, he does not require run-time constructability, so he would consider C functions to be first-class.

Manipulation First Second Third
Pass value as a parameter yes yes no
Return value from a procedure yes no no
Assign value into a variable yes no no

Read more about this topic:  First-class Citizen

Famous quotes containing the words class and/or objects:

    “We of the sinking middle class ... may sink without further struggles into the working class where we belong, and probably when we get there it will not be so dreadful as we feared, for, after all, we have nothing to lose but our aitches.”
    —George Orwell (1903–1950)

    “There are characters which are continually creating collisions and nodes for themselves in dramas which nobody is prepared to act with them. Their susceptibilities will clash against objects that remain innocently quiet.”
    —George Eliot [Mary Ann (or Marian)