Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
delete[] p or delete[] *p
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Paul, post: 4204463"] What you said up here is pretty correct. However, that bears no relevance to what I quoted you about: "A pointer to T[Size], such as T (*p)[Size], does not reference the array, it referneces an array-type, which is a different object than the array." The above is still nonsense, and your subsequent post didn't explain anything in there. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx The only nonsesne is coming from you. You are trying to argue that a pointer to an array of chars, is a pointer to an array-type object and not a pointer to char type objects. Which is obviously technically incorrect. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx My words "standard never says that pointer references anything" are correct. Your standard quote, e.g. "A pointer type derived from the referenced type T is sometimes called ''pointer to T''" does not say, nor mean, that pointer __references__ anything, which is what you previous post said. Pointer __points to__ something, and this is what standard does say. And especially in the context of C++, word "reference" typically has another meaning. I believe that you are arbitrarily muddying things up to support your worthless point. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Its quite obviously you that are muddying things up. You seem to speaking a big pile of shit abut what your interpretation of "references" is. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
delete[] p or delete[] *p
Top