ref2401:

void processRef(ref MyStruct ms) {
        writeln("processRef: ", ms);
}

void processPointer(MyStruct* ms) {
        writeln("processPointer: ", *ms);

ref params don't need the "*" every time you use them inside the function, and don't need the "&" when you call the function.

Bye,
bearophile

Reply via email to