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 must not discriminate between things. Where things are concerned there are no class distinctions. We must pick out what is good for us where we can find it.
    Pablo Picasso (1881–1973)

    But after the intimacy-inducing rituals of puberty, boys who would be men are told we must go it alone, we must achieve our heroism as the Lone Ranger, we must see the other men as threats to our masculine mastery, as objects of competition.
    Frank Pittman (20th century)