Adding a new design constraint to D

Paul Backus snarwin at gmail.com
Tue Jun 14 16:57:34 UTC 2022


On Tuesday, 14 June 2022 at 16:33:10 UTC, Max Samukha wrote:
> On Tuesday, 14 June 2022 at 13:49:30 UTC, Ola Fosheim Grøstad 
> wrote:
>
>>
>> It isn't necessarily through a different path unless you think 
>> that Bar is cloaking Foo, basically redoing everything that is 
>> Foo.
>
> D encourages me to think about it as being similar to 'alias 
> this', which seems to behave differently:

`alias this` is a weird special case. It doesn't really behave 
like anything else in the language. You probably shouldn't draw 
any broad conclusions based on the behavior of `alias this`.


More information about the Digitalmars-d mailing list