ref type versus ptr type on input

Jonathan jdgall84 at gmail.com
Sun Dec 29 11:42:38 PST 2013


If I want to write a function that operates on a struct

struct S { }

What are the differences between:

void(S* s)

void(ref S s)

Also, for my general knowledge, is there a way to set default 
function parameters, such as scope or lazy?


More information about the Digitalmars-d-learn mailing list