Originally posted by Kengkaj Sathianpantarit:
I think its value is near to zero, so I never expect whoever will issue a IDE certification.
Originally posted by Kengkaj Sathianpantarit:
Hmph, an IDE certification? Never expect it.
Originally posted by Steve Luke:
It sounds like you were saying that we would have to clone the String in order to keep them alive in the cloned object.
Yes, I can see that I wasn't as clear as I should have been there.
Since none of the previous posts actually suggested cloning the String, mine only suggested letting the String references get copied, AND you never refer back to re-nulling the copies of the String, this again makes it easy to mis-interpret (or rather hard to interpret the way you meant it to be).
You are correct, I should have referred back to myself. I didn't mean to cause confusion on something that should be simple![]()
Why do I bother writing this? I don't want to dwell, and would normally have stopped at 'It does now', but it irks me when you repeatedly said 'read the thread' as if we hadn't and what you were saying was obvious if only we would read it.
We did read the thread. What you said sounded wrong. Only now after you fill in the context of what was going on in your head (but not written in your posts) does it clear things up.
Sorry, this wasn't meant as a rant, I just wanted you to understand that you weren't really being fair when you repeatedly said 'if you would read the thread...'.
Originally posted by Joanne Neal:
Yes, but Steve and I are referring to your second sentence where the clone does have a reference to the string, so disposing of the original will make no difference.
However, as Steve said the clone will simply copy the reference to the String anyway so this wouldn't make any difference until you disposed of the original.
However, as Steve said the [basic/original/non overidden] clone will simply copy the reference to the String anyway so this [setting the clone string to null] wouldn't make any difference [in comparison to the original way] until you disposed of the original [where upon the original string would be GCed and you would no longer have a reference to it thus freeing up memory].