On 5/13/2014 6:50 AM, Dicebot wrote:
Walter's initial post implies that he wanted to re-used `ref` for borrowed
pointer (which would mean same semantics as `scope` parameter qualifier)

'ref' already is to much extent, for example:

  @safe int foo(ref int x) {
    auto a = &x;
    return 3;
  }

dmd foo -c
foo.d(4): Error: cannot take address of parameter x in @safe function foo

Reply via email to