alias this
Steven Schveighoffer
schveiguy at yahoo.com
Thu Aug 30 05:58:28 PDT 2012
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
More information about the Digitalmars-d
mailing list