template+alias as an object's "namespace"

F i L witte2008 at gmail.com
Tue Apr 17 16:04:26 PDT 2012


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 { ... }



More information about the Digitalmars-d mailing list