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:

    Much of the wisdom of the world is not wisdom, and the most illuminated class of men are no doubt superior to literary fame, and are not writers.
    Ralph Waldo Emerson (1803–1882)

    Adultery itself in its principle is many times nothing but a curious inquisition after, and envy of another man’s enclosed pleasures: and there have been many who refused fairer objects that they might ravish an enclosed woman from her retirement and single possessor.
    Jeremy Taylor (1613–1667)