Arbitrary abbreviations in phobos considered ridiculous

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Mar 7 06:30:15 PST 2012


On 3/7/12, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> I'll see if I can do a pull request.

For my own purposes what I did was wrap StopWatch in a custom struct
and used alias this to overwrite some of its functions. It's one of
the things that makes D so great, I can basically rewrite an external
API with zero hit on performance.

In fact, maybe we should add a note of this capability to the
http://en.wikipedia.org/wiki/Adapter_pattern page (e.g. a
"compile-time adapter" section)


More information about the Digitalmars-d mailing list