borrowed pointers vs ref

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon May 12 15:51:49 PDT 2014


On 5/12/2014 2:15 PM, Steven Schveighoffer wrote:
> Hm... the one piece that I think would be damaging is to not be able to take an
> address of the 'this' reference. It's probably OK to just use pointers and
> static functions in some cases, but member functions do not have that luxury. In
> other words, operators.
>
> Big example would be a doubly linked list used with ~=.

@trusted/@system code will be able to take the address of a ref.


More information about the Digitalmars-d mailing list