Structs with pointers?

bearophile bearophileHUGS at lycos.com
Sat Jan 22 14:52:28 PST 2011


Sean Eskapp:

> Why doesn't this code work?

This works, the Bar instance you give to foo is const.

void foo(const Bar a) {}

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list