Skip to content

Regarding conditional relocation and end-of-scope #19

Description

@ecatmur

I have a few questions:

  • How do we forbid reloc x + reloc x?
  • What about x + reloc x or reloc x + x?
  • What about x, reloc x? x or reloc x? x[reloc x]?
  • For automatic variable x, after the ternary conditional p ? void(reloc x) : void(), is x destroyed (before end of scope of x) if p converts to false? If so, when exactly?
  • What about in (p ? throw : void()), reloc x?
  • What happens if a goto, break or throw (in a previous expression-statement) skips over reloc x?
  • In if (false) reloc x; did we consider destroying x immediately instead of at end of scope? Does this bear adding to discussion?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions