<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I ported my Deque from a class to a struct.
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <a href="http://dpaste.1azy.net/cc983a8d">http://dpaste.1azy.net/cc983a8d</a><br>
    It uses a ref counted payload which holds a pointer to a chunk of
    memory. <br>
    A helper function called createDeque was created to get around the
    struct ctor stuff.<br>
    <br>
    While implementing I ran in some problems. Like:<br>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <a href="http://d.puremagic.com/issues/show_bug.cgi?id=9401">http://d.puremagic.com/issues/show_bug.cgi?id=9401</a>
    This goes for all attributes as Maxin Fomin correctly says. <br>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <a href="http://d.puremagic.com/issues/show_bug.cgi?id=4338">http://d.puremagic.com/issues/show_bug.cgi?id=4338</a>
    This is sort of annoying but I got past it by doing some bad casts.<br>
    A @trusted { at the beginning of the file is not horored by the
    compiler created methods.<br>
    <br>
    Somehow "new" now creates segfaults (run the code and see the
    Appender die). I have no idea what I do wrong.<br>
    When main is left another segfault occurs while joining running
    threads (I did not create any Threads explicitly).<br>
    <br>
    It would be nice if somebody could take a look and give me some
    pointers.<br>
    <br>
    Best Regards<br>
    Robert<br>
    <span style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif;
      font-size: 12px; font-style: normal; font-variant: normal;
      font-weight: bold; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: start; text-indent: 0px; text-transform:
      none; white-space: normal; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      background-color: rgb(232, 232, 232); display: inline !important;
      float: none; "><span class="Apple-converted-space"></span></span>
  </body>
</html>