alias this
Carl Sturtivant
sturtivant at gmail.com
Thu Aug 30 09:08:27 PDT 2012
On Thursday, 30 August 2012 at 12:58:28 UTC, Steven Schveighoffer
wrote:
> On Thu, 30 Aug 2012 07:48:54 -0400, Carl Sturtivant
> <sturtivant at gmail.com>
> wrote:
>
>>
>> Subtyping with 'alias this' is superb and easy; it's a
>> tremendous simplifying mechanism, one of D's many ingenious
>> and well integrated technical simplifying mechanisms that were
>> a big part of getting me on board, spreading the word and
>> moving to D. What is the design logic behind
>>
>> 364.d(9): Error: alias this compileme364.number.__anonymous
>> there can be only one alias this
>>
>> --- not a complaint, I'd just like to hear opinion of the
>> basis of the above restriction from experts.
>
> This is a limitation in implementation. According to TDPL,
> there will be
> multiple alias this allowed in the final implementation.
>
> See this bug: http://d.puremagic.com/issues/show_bug.cgi?id=6083
>
> -Steve
Ah, thanks. Glad to hear the eventual outcome is broad.
More information about the Digitalmars-d
mailing list