template+alias as an object's "namespace"
Gor Gyolchanyan
gor.f.gyolchanyan at gmail.com
Wed Apr 18 03:03:50 PDT 2012
I wanted this for a long time now. There were many situations when I
needed just that, but I didn't want to invent dummy structures for
that, because I didn't want any run-time change.
On Wed, Apr 18, 2012 at 3:04 AM, F i L <witte2008 at gmail.com> wrote:
> Another possible syntax is, given the talked about:
>
> alias name = type;
>
> syntax, we could just use that in combination with "anonymous templates":
>
> alias X11 = template {
>
> @property auto display() { return _display; }
> }
>
> Though, now that I look at it I'm kinda just like parameterless templates:
>
> template X11 { ... }
>
--
Bye,
Gor Gyolchanyan.
More information about the Digitalmars-d
mailing list