A language-agnostic term for typed things that need memory

Is there an accepted general term that includes the concepts of variables, class instances, and arrays? In principle, "any typed thing that needs memory." In C ++, such a thing is called an object, but I'm looking for a more language-agnostic term.

§ 1.8 C ++ object model

1 Constructs in a C ++ program create, destroy, reference, process, and process objects. An object is a storage area. [...] An object may have a name (section 3). The object has a storage duration (3.7), which affects its lifetime (3.8). The object is of type (3.9).

+3
source share
6 answers

For example: “Data object” or “Information object”.

Maybe one could only say "essence", but for me it sounds too abstract. "Data ..." or "information ..." adds at least a minimal context. "Essence" is separated from "Operations" (functions, procedures, methods) or "Relations".

Well, there is no clue if this is customary.

(But in the end, I feel that “Entity” is just another word for “Object,” perhaps just without a direct connection to object-oriented programming.)

+2
source

, / " ", Lisp Lua, "".

+4

- , , - . , .

, - , "" " ", . , ++.

+1

C99 "", , C - . 3.14 "" " , ".

+1

Is the object suitable for your needs? - I think of the “object” as an abstract idea ... a variable that contains data (and therefore memory), whose structure is either unknown or irrelevant.

0
source

He called the data item.

-1
source

Source: https://habr.com/ru/post/1743720/


All Articles