Andrei Alexandrescu wrote:
On 11/18/10 1:50 PM, Michel Fortin wrote:
On 2010-11-18 16:02:40 -0500, "Steven Schveighoffer"
<[email protected]> said:

class obj
{
char[] name;
this(char[] name) { this.name = name;}
}

What to do there?


I agree that it just seems like good class design to have obj.name be immutable, and pass the responsibility for making it so up the call chain to the constructor.

Reply via email to