Why can't structs be derived from?
Regan Heath
regan at netmail.co.nz
Fri Mar 18 09:13:53 PDT 2011
On Thu, 17 Mar 2011 21:36:45 -0000, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
> On 3/17/11 11:21 AM, Andrej Mitrovic wrote:
>> On 3/17/11, Nick Sabalausky<a at a.a> wrote:
>>> I've long been convinced that "alias old new;" should really be "alias
>>> new =
>>> old;" The current way confuses me, and I *still* have to consciously
>>> stop
>>> and think about it every time I write an alias statement (including
>>> just
>>> now).
>>>
>>
>> I thought I was the only one. The `alias symbol this` in structs in
>> particular always stops me and I have to think about what it means,
>> even though it might be obvious.
>
> I'm with y'all too. Even Walter needs to stop and think for a second.
> We're considering enabling
>
> alias a = b;
>
> as an equivalent for
>
> alias b a;
Yes please!
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list