<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">31-Jan-2014 08:51, Igor Lesik пишет:<br>
    </div>
    <blockquote
      cite="mid:1391143889.8220.YahooMailNeo@web124902.mail.ne1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:12pt">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>I was watching DConf13 David Simcha's talk recently ...
          what happened to the idea of creating std.pattern? I do not
          see it phobos.</div>
        <div><br>
        </div>
        <div>I have Singleton design pattern implementation based on
          David's code:</div>
        <div><a moz-do-not-send="true"
href="https://github.com/curoles/webos/blob/master/src/d/gem/Singleton.d">https://github.com/curoles/webos/blob/master/src/d/gem/Singleton.d</a></div>
        <div><br>
        </div>
        <div>usage:</div>
        <div class="line" id="LC53">    <span class="k">auto</span> <span
            class="n">my1</span> <span class="p">=</span> <span
            class="n">Singleton</span><span class="p">!</span><span
            class="n">MyClass</span><span class="p">.</span><span
            class="n">get</span><span class="p">();</span></div>
        <div class="line" id="LC54">    <span class="k">auto</span> <span
            class="n">my2</span> <span class="p">=</span> <span
            class="n">Singleton</span><span class="p">!</span><span
            class="n">MyClass</span><span class="p">.</span><span
            class="n">get</span><span class="p">();</span></div>
        <div class="line">    <span class="k">assert</span><span
            class="p">(</span><span class="n">my2</span> <span
            class="k">is</span> <span class="n">my1</span><span
            class="p">);</span></div>
        <div class="line"><span class="p"><br>
          </span></div>
        <div class="line"><span class="p">Thanks,</span></div>
        <div class="line"><span class="p">Igor</span></div>
        <div><span class="p"><br>
          </span></div>
        <div><span class="p"><br>
          </span></div>
      </div>
    </blockquote>
    There is this ready for review:<br>
    <a class="moz-txt-link-freetext" href="http://someboddy.github.io/phobos/ddocs/for-idioms/idioms.html">http://someboddy.github.io/phobos/ddocs/for-idioms/idioms.html</a><br>
    <a class="moz-txt-link-freetext" href="https://github.com/D-Programming-Language/phobos/pull/1294">https://github.com/D-Programming-Language/phobos/pull/1294</a><br>
    <br>
    <blockquote
      cite="mid:1391143889.8220.YahooMailNeo@web124902.mail.ne1.yahoo.com"
      type="cite">
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
phobos mailing list
<a class="moz-txt-link-abbreviated" href="mailto:phobos@puremagic.com">phobos@puremagic.com</a>
<a class="moz-txt-link-freetext" href="http://lists.puremagic.com/mailman/listinfo/phobos">http://lists.puremagic.com/mailman/listinfo/phobos</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dmitry Olshansky</pre>
  </body>
</html>