Why do we have transitive const, again?

mta`chrono chrono at mta-international.net
Fri Sep 23 12:04:28 PDT 2011


> I don't see why immutability has anything to do with constness... would
> you mind clarifying? Why does having transitive immutable also imply
> that we /must/ have transitive const?

One man's variable is other man's const.

foobar(const(char)[] data)
{
	
}


immutable(char)[] data = "....";
foobar(data);



More information about the Digitalmars-d mailing list