-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/05/2011 12:44 PM, Paul wrote:
>
> "Ulrich Eckhardt" <> wrote in message
> news:...
>> Paul wrote:
>>> "Garrett Hartshaw" <> wrote in message
>>> news:ifvr1i$kl9$...
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> On 01/04/2011 08:46 AM, Paul wrote:
>>>>>
>>>>> Consider 2 instances of the same Object,
>>>>> You could say that is a condradiction but you don't when you
>>>>> understand it.
>>>>>
>>>>
>>>> An object is an instance of a *class*. You cannot have 2 *instances* of
>>>> an object because you can't even have one.
>>> I think you'll find you can have an array of objects if you choose, each
>>> object being a different entity.
>>
>> So? An array of distinct objects, each of the same type. This doesn't
>> contradict Garret's statement in the least.
>>
>>> If you cannot understand this please do not make obscure statemets that
>>> imply the negative.
>>
>> Read it again, expert, you talk about instances of an object, but that
>> term itself doesn't make sense. An object is an instance of a type. You
>> can not have instances of an object. You can have multiple instances of
>> the same type as an object, but that's not what you said.
>>
>
> So what happens if you copy an object?
> You create a new instance of that object.
> What part of that do you find difficult to understand?
>
When you copy an object, you get a new instance of the class that that
object was based on with that same values for all of the members. As a
class is defined by the C++ standard to be a region of storage, it is
nonsensical to say that you have a new instance of that region of
storage. What you have is a different region of storage that happens to
be storing the same thing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJNJQpkAAoJEO0SzzQOdchNegQP/0bBECQc72RZL1dHasUOjgAd
Iwexzts156+2Xz0r7qVk+yR8Upqm3g3P8HWhcYrhewqPFVMngD wqUhMZa2GQlFH/
odfn0h4VyL2rp10TYBFWkR84fNYg/wmT27Ae06mFtLSNXtkQoYz1MaROeWdO5TQ7
HbI7IwKzfId6OMk7Uh7ogBk41kNpwaA2fEgNiRNJatLNfrVPTN jRl02KV6cGumXl
tele56xO6JlosX3Dvv98V/nqvZPcpv/7AEvmadxMtUYYotaXp9z5aV+WawynXfaV
pENfk5oJZF3Nny/1fvgPCRPlVbmFsm7czAyjlitEwemuaJCD5CGaonPVj9Mc+BXD
46Idq4X0VVnw5qG+UuucuIzGNiUDJ2e6E7MQLGKaTx5wD/Uxpt1RDUDOcY0TkljY
EmiM0R7iw4tkVmBuDWygZ8UQ1AlVylS7zVi73Ru+M3mq6D0oFC zZpjhyFTout4VM
GNwGA6qeAPwekA315PnBuTOhmxlo6XjWRCFEinpgA+t6vUdC8q sQJ0sSPXc2vU6s
of0l+u4V6UxFsuFO4jT2NXXzwcip9+QcNF2XWU2cAIZO57NtO4 p2Qc3LN6BCjDgN
lDiDgIgT/W+FHMjyaMrxyaOkPB/NNtLHz/l+ERzb/DSyoVI+UY4/ykSlQngUzWKV
ay/Igexpa/k+OEOkK/Zw
=xxrN
-----END PGP SIGNATURE-----