<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 8 feb 2012, at 21:34, Walter Bright wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">

  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#ffffff" text="#000000">
    <blockquote cite="mid:a51d508c-b4d4-e939-c7ec-89f2bc6932f4@me.com" type="cite">
      <div>On 08 Feb, 2012,at 10:21 AM, Walter Bright
        <a class="moz-txt-link-rfc2396E" href="mailto:walter@digitalmars.com"><walter@digitalmars.com></a> wrote:<br>
        <br>
        <div>
          <blockquote type="cite">
            <div class="msg-quote">
              <div class="_stretch"><a moz-do-not-send="true" href="http://ftp.digitalmars.com/dmd1beta.zip" _mce_href="http://ftp.digitalmars.com/dmd1beta.zip">http://ftp.digitalmars.com/dmd1beta.zip</a><br>
                _______________________________________________<br>
                dmd-beta mailing list<br>
                <a moz-do-not-send="true" href="mailto:dmd-beta@puremagic.com" _mce_href="mailto:dmd-beta@puremagic.com">dmd-beta@puremagic.com</a><br>
                <a moz-do-not-send="true" href="http://lists.puremagic.com/mailman/listinfo/dmd-beta" _mce_href="http://lists.puremagic.com/mailman/listinfo/dmd-beta">http://lists.puremagic.com/mailman/listinfo/dmd-beta</a></div>
            </div>
          </blockquote>
          <span></span></div>
        <div><br>
          I'm looking at this commit:<br>
        </div>
        <div><br>
        </div>
        <div><a class="moz-txt-link-freetext" href="https://github.com/D-Programming-Language/d-programming-language.org/commit/59e9decffc8f6fd3439492c406279ddf327b9b1b">https://github.com/D-Programming-Language/d-programming-language.org/commit/59e9decffc8f6fd3439492c406279ddf327b9b1b</a><br>
        </div>
        <div><br>
        </div>
        <div>Why was "ref" removed?<br>
        </div>
      </div>
    </blockquote>
    <br>
    D1 doesn't have ref.</div></blockquote></div><div><br></div><div>Of course it does. It's been there for a long as I can remember. In fact, according to the changelog, it's been there since 2007:</div><div><br></div><div><a href="http://www.digitalmars.com/d/1.0/changelog.html#new1_011">http://www.digitalmars.com/d/1.0/changelog.html#new1_011</a></div><div><br></div><div>"Added keywords ref and macro."</div><div>"ref now works as a replacement for inout."</div><div><br></div><div>This works as expected with DMD 1.072:</div><div><br></div><div><div>void foo (ref int i)</div><div>{</div><div>    i++;</div><div>}</div><div><br></div><div>void main ()</div><div>{</div><div>    int a = 3;</div><div>    foo(a);</div><div>    assert(a == 4);</div><div>}</div></div><br><div>
-- <br>/Jacob Carlborg
</div>
<br></body></html>