We're probably talking about the same thing but from different angles. I mean you can do this if you like skating on thin ice or completely crazy (not tested but it should work without crashing):
...
Type: Posts; User: Hodor
We're probably talking about the same thing but from different angles. I mean you can do this if you like skating on thin ice or completely crazy (not tested but it should work without crashing):
...
I'm arguing that 'i' should not be accessible and it's 'i' that the OP is accessing in the code in the original post (line 14), because ptr after decrementing is now point to a private object (i). I...
Actually there is a violation, but that's because you're relying on the memory layout when you do ptr--, so *shrug*. It's not that different to indexing an array out of bounds.