Search:

Type: Posts; User: Hodor

Search: Search took 0.02 seconds.

  1. Replies
    11
    Views
    3,610

    We're probably talking about the same thing but...

    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):

    ...
  2. Replies
    11
    Views
    3,610

    I'm arguing that 'i' should not be accessible and...

    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...
  3. Replies
    11
    Views
    3,610

    Actually there is a violation, but that's because...

    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.
Results 1 to 3 of 3