J
johanatan
If variables can have a 'reference type', then the answer to my
question would be 'yes'. Noticed I asked if an expression could
evaluate to a 'reference to an object'. This is what you seem to be
referring to as a 'variable which happens to be a reference'. But, in
my simplistic world, I just call a variable that happens to be a
reference, or 'has a reference type' as you say, 'references' (and
sometimes if I'm feeling a little verbose, I might say 'reference to
an object'.
Would you say that an object in the real world that has the type of
car is a car? Or does it just have the type of car? This is probably
a philosophical question, but to simple me, it *is* a car.
--Jonathan
question would be 'yes'. Noticed I asked if an expression could
evaluate to a 'reference to an object'. This is what you seem to be
referring to as a 'variable which happens to be a reference'. But, in
my simplistic world, I just call a variable that happens to be a
reference, or 'has a reference type' as you say, 'references' (and
sometimes if I'm feeling a little verbose, I might say 'reference to
an object'.
Would you say that an object in the real world that has the type of
car is a car? Or does it just have the type of car? This is probably
a philosophical question, but to simple me, it *is* a car.
--Jonathan