Struct inheritance
Paul Backus
snarwin at gmail.com
Thu Sep 19 19:52:35 UTC 2024
On Thursday, 19 September 2024 at 15:56:06 UTC, Richard (Rikki)
Andrew Cattermole wrote:
> As an idea this has come up in Razvan's DConf 2024 talk.
Last time this came up on the forums, I did a quick search
through Phobos to see how many uses of `alias this` forwarded to
a member variable (and could be replaced by struct inheritance)
and how many forwarded to a function.
My hypothesis before actually checking was that `alias this` to a
member variable would be significantly more common than `alias
this` to a function. But in reality, they turned out to be
equally common.
Original post:
https://forum.dlang.org/post/nbysytbybvqwgxvdexym@forum.dlang.org
More information about the dip.ideas
mailing list