On 04/24/2015 06:23 AM, ref2401 wrote:

> What advantages do ref params give over pointer params?

Another difference is that a ref parameter is not null and what is referred to is not an rvalue.

However, it is possible to break that expectation if a pointer is dereferenced and passed to a ref-taking function but then the actual object is gone before the reference is used.

Ali

Reply via email to