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:

    “Each class of society has its own requirements; but it may be said that every class teaches the one immediately below it; and if the highest class be ignorant, uneducated, loving display, luxuriousness, and idle, the same spirit will prevail in humbler life.”
    —First published in Girls’ Home Companion (1895)

    “A man is but a little thing in the midst of the objects of nature, yet, by the moral quality radiating from his countenance, he may abolish all considerations of magnitude, and in his manners equal the majesty of the world.”
    —Ralph Waldo Emerson (1803–1882)