| First-class Object |
Website Links For Object |
Information AboutFirst-class Object |
| CATEGORIES ABOUT FIRST-CLASS OBJECT | |
| programming constructs | |
|
In Computing , a first-class object (also '''-value''', '''-entity''', '''-citizen'''), in the context of a particular Programming Language , is an entity which can be used in programs without restriction (when compared to other kinds of objects in the same language). Depending on the language, this can imply:
For example, in C , it is not possible to create new Function s at runtime, whereas other kinds of object can be created at runtime. So functions in C are not first-class objects; sometimes they are called second-class objects because they can still be manipulated in most of the above fashions (via Function Pointer s). Similarly, String s are not first class objects in Fortran as it is not possible to assign them to variables, whereas numbers can be so assigned. SEE ALSO |
|
|