>>How will your function cope if you were also passing a Long value? How do you differentiate between a Long value and a Long memory address?<<
That question alone shows your deplorable lack of knowledge on the subject. It also shows why some people rely on words in their replies and not provable code. Words can be denied as in; ‘oh I didn’t mean that’ or ‘that is just a typo’, or ‘now you’re being pedantic’ or ‘blah, blah, blah’, deny, deny, deny.
There is not a function, there are two functions. One sends and one receives.
The functions (plural) are designed to handle the conversion between Objects and a pointer to that Object and for your education a Long is not an Object.
The difference between a Long value and a Long memory address is purely imaginary.
They are both 32 bits of binary information and that’s it…period.
If the programmer wishes to use it as a Long value they can.
If the programmer wishes to use it as an Address they can.
There is no difference between a Long value and a memory Address.
It’s up to the intelligent programmer to use them in an intelligent way.
If you’re Googling for your information, as supplied in this thread, I suggest you stop it.
‘Deep cloning of an object’, what a load of crap; you don’t even understand the difference between imaginary and real.
You are being destructive with your continued comments in this thread.
Your words are also bringing your abilities into question.
Stop simply talking and start producing something real.
I’ve done my bit and it works; where’s yours?
Chris.