dlang.org icon indicating copy to clipboard operation
dlang.org copied to clipboard

spec: class: add __ctor, __dtor and __xdtor aliases

Open ljmf00 opened this issue 4 years ago • 7 comments

Signed-off-by: Luís Ferreira [email protected]

ljmf00 avatar Nov 22 '21 16:11 ljmf00

Thanks for your pull request, @ljmf00!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

dlang-bot avatar Nov 22 '21 16:11 dlang-bot

Should we also refer to this on structs ?

ljmf00 avatar Nov 22 '21 16:11 ljmf00

There's no linked bugzilla issue, so what's the idea behind this PR? It's already specified that identifiers starting with a double underscore are reserved.

dkorpel avatar Nov 23 '21 20:11 dkorpel

There's no linked bugzilla issue, so what's the idea behind this PR? It's already specified that identifiers starting with a double underscore are reserved.

Yes, but this has a special purpose, and as I said above, it is noted in some specification examples such as traits and structs. We should also follow the same struct section, which specifies the behaviour of __postblit and __xpostblit.

ljmf00 avatar Nov 23 '21 23:11 ljmf00

@ljmf00 can you please rebase your PR?

PetarKirov avatar May 22 '23 14:05 PetarKirov

@ljmf00 can you please rebase your PR?

Yes, I'll add to my TODO list.

ljmf00 avatar May 22 '23 15:05 ljmf00

ping @ljmf00

RazvanN7 avatar Mar 06 '24 10:03 RazvanN7