How to create immutable struct?
bearophile
bearophileHUGS at lycos.com
Sat Oct 6 08:36:12 PDT 2012
denizzzka:
> How to pass immutable to new?
One solution:
struct Cell {}
void main() {
auto s = new immutable(Cell)();
}
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list