Re: What is an object?
Tom Payne wrote:[color=blue]
> int i;
> the object i is said to be an int, and similarly 3 is said to be an
> int. Unfortunately, both are (ambiguously) referred to as "ints".[/color]
That's *colloquial* usage; "int" is actually the name
of a type. In formal specifications, one usually sees
"object of type int" or "value" (the type that the
value has is inferred from the context). In practical
work, the relationships are almost always clear enough.
Don't you have anything better to do than to complain
about things that aren't causing any real problems?
Tom Payne wrote:[color=blue]
> int i;
> the object i is said to be an int, and similarly 3 is said to be an
> int. Unfortunately, both are (ambiguously) referred to as "ints".[/color]
That's *colloquial* usage; "int" is actually the name
of a type. In formal specifications, one usually sees
"object of type int" or "value" (the type that the
value has is inferred from the context). In practical
work, the relationships are almost always clear enough.
Don't you have anything better to do than to complain
about things that aren't causing any real problems?
Comment