Re: Multiple destructors

2023-05-26 Thread Basile B. via Digitalmars-d-learn
On Friday, 26 May 2023 at 09:07:07 UTC, Alex Biscotti wrote: Hello everyone! While researching the phobos library, I discovered that a class can have multiple destructors if the destructors are added via mixin injection. Accordingly, the question is whether a description of such feature should

Re: Multiple destructors

2023-05-26 Thread Alex Biscotti via Digitalmars-d-learn
On Friday, 26 May 2023 at 09:49:21 UTC, Ernesto Castellotti wrote: Currently the spec says "If the name of a declaration in a mixin is the same as a declaration in the surrounding scope, the surrounding declaration overrides the mixin one", I understand why this occurs with the current

Re: Multiple destructors

2023-05-26 Thread Ernesto Castellotti via Digitalmars-d-learn
UTC, Alex Biscotti wrote: Hello everyone! While researching the phobos library, I discovered that a class can have multiple destructors if the destructors are added via mixin injection. Accordingly, the question is whether a description of such feature should be added to the documentation, since

Re: Multiple destructors

2023-05-26 Thread Alex Biscotti via Digitalmars-d-learn
the phobos library, I discovered that a class can have multiple destructors if the destructors are added via mixin injection. Accordingly, the question is whether a description of such feature should be added to the documentation, since the current description is a bit confusing - ["Ther

Re: Multiple destructors

2023-05-26 Thread Ernesto Castellotti via Digitalmars-d-learn
On Friday, 26 May 2023 at 09:17:34 UTC, Alex Biscotti wrote: On Friday, 26 May 2023 at 09:11:47 UTC, Ernesto Castellotti wrote: On Friday, 26 May 2023 at 09:07:07 UTC, Alex Biscotti wrote: Hello everyone! While researching the phobos library, I discovered that a class can have multiple

Re: Multiple destructors

2023-05-26 Thread Alex Biscotti via Digitalmars-d-learn
On Friday, 26 May 2023 at 09:11:47 UTC, Ernesto Castellotti wrote: On Friday, 26 May 2023 at 09:07:07 UTC, Alex Biscotti wrote: Hello everyone! While researching the phobos library, I discovered that a class can have multiple destructors if the destructors are added via mixin injection

Re: Multiple destructors

2023-05-26 Thread Ernesto Castellotti via Digitalmars-d-learn
On Friday, 26 May 2023 at 09:07:07 UTC, Alex Biscotti wrote: Hello everyone! While researching the phobos library, I discovered that a class can have multiple destructors if the destructors are added via mixin injection. Accordingly, the question is whether a description of such feature should

Multiple destructors

2023-05-26 Thread Alex Biscotti via Digitalmars-d-learn
Hello everyone! While researching the phobos library, I discovered that a class can have multiple destructors if the destructors are added via mixin injection. Accordingly, the question is whether a description of such feature should be added to the documentation, since the current description