How to cast `shared` away reliably
Nick Treleaven
nick at geany.org
Mon Feb 16 11:11:53 UTC 2026
On Wednesday, 11 February 2026 at 21:34:14 UTC, Paul Backus wrote:
> On Wednesday, 11 February 2026 at 16:49:19 UTC, Arafel wrote:
>> I think it would still make sense to define what a "subtype"
>> is.
>
> The usage of the word "subtype" here is incorrect; it should
> probably say something like "component types" instead.
>
>> However, of the items listed there, pointers are indeed
>> showing this behaviour, but functions and delegates aren't.
>
> What you are referring to as "function types" are probably
> function _pointer_ types. Qualifiers work the same way for them
> as they do for any other pointer types.
>
> Note that the _parameters_ of a function are not affected by
> qualifiers on a function pointer, because the parameters of a
> function are neither _contained in_ nor _pointed to_ by the
> function pointer.
Thanks. This PR renames *subtype* to *component type* and lists
them:
https://github.com/dlang/dlang.org/pull/4392
More information about the Digitalmars-d
mailing list