Files
carbon-lang/proposals
josh11b 9b028bb743 Destructors (#1154)
Add a way for classes to add custom destructor code:
```
class Class1 {
  // forward declaration
  destructor [me: Self] { ... }
}
// out-of-line definition
destructor Class1 [me: Self] { ... }

class Class2 {
  // can modify `me` as part of destruction
  destructor [addr me: Self*] { ... }
}
base class MyBaseClass {
  virtual destructor [addr me: Self*] { ... }
}
class MyDerivedClass extend MyBaseClass {
  impl destructor [addr me: Self*] { ... }
}
```
and constraints `Concrete`, `Deletable`, `Destructible`, and `TrivialDestructor`.
2022-04-18 17:39:33 -07:00
..
2021-04-23 17:19:23 -07:00
2021-04-21 13:00:03 -07:00
2021-04-21 10:06:44 -07:00
2021-04-13 20:57:17 -07:00
2021-05-10 16:42:01 -07:00
2021-06-29 10:52:45 -07:00
2021-07-08 10:39:36 -07:00
2021-07-09 11:49:32 -07:00
2021-08-03 15:37:18 -07:00
2021-09-23 18:39:54 -07:00
2022-02-22 17:18:27 -08:00
2022-02-22 17:18:27 -08:00
2021-09-21 09:33:32 -07:00
2022-02-22 17:18:27 -08:00
2021-09-21 15:16:16 -07:00
2021-09-23 10:09:57 -07:00
2021-09-21 09:45:35 -07:00
2021-10-29 16:46:19 -07:00
2022-01-10 10:08:14 -08:00
2022-01-27 11:25:43 -08:00
2022-01-28 20:07:45 -08:00
2022-03-02 13:01:01 -08:00
2022-02-22 17:18:27 -08:00
2022-03-16 14:43:03 -07:00
2022-03-24 17:51:17 -07:00
2022-04-18 17:39:33 -07:00

Proposals

Proposal lists

Directory structure

This directory contains accepted proposals for the carbon-lang repository. For information about declined/deferred proposals, please view the proposal's original pull request.

For accepted proposals, where #### is the corresponding proposal's pull request:

  • p####.md will contain the main proposal text.
  • p#### may be present as an optional subdirectory for related files (for example, images).