ref & address

Adam D. Ruppe destructionator at gmail.com
Wed Apr 16 10:20:51 PDT 2014


OK, you could also store a pointer to the InputRange as your 
member.

With structs, assignment is making a private copy, so if you want 
to update the original in a stored thing you'll need the pointer. 
ref doesn't work with anything other than function arguments in D.


More information about the Digitalmars-d-learn mailing list