change mixins
Bill Baxter
wbaxter at gmail.com
Sun Feb 14 17:22:33 PST 2010
On Sun, Feb 14, 2010 at 3:39 PM, Michel Fortin
<michel.fortin at michelf.com> wrote:
> On 2010-02-14 18:12:45 -0500, Bill Baxter <wbaxter at gmail.com> said:
>
>> That's useful as a standalone:
>> MeshTypes!(MyMeshT).VectorT
>> But also mixed into some class that deals with meshes
>> class MeshManipulator(MeshT) { mixin MeshTypes!(MeshT); ... }
>
> Can't you use
>
> alias MeshTypes!(MyMeshT) this;
>
> now with D2?
Maybe. But I was thinking that only worked for one type per class.
If so, then 'alias this' is a limited resource I wouldn't generally
want to waste on that.
--bb
More information about the Digitalmars-d
mailing list