Skip to content
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.

Class RAII #55

Open
AjaniBilby opened this issue Sep 3, 2020 · 0 comments
Open

Class RAII #55

AjaniBilby opened this issue Sep 3, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@AjaniBilby
Copy link
Member

class Vec {
  int* pointer;

  void constructor() {
    this->pointer = malloc(0);
  }
  void delete() {
    free(this->pointer);
  }
}
@AjaniBilby AjaniBilby added the enhancement New feature or request label Sep 3, 2020
@AjaniBilby AjaniBilby added this to the Class Behavior milestone Sep 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant