properties
John C
johnch_atms at hotmail.com
Tue Jul 28 10:17:12 PDT 2009
Andrei Alexandrescu wrote:
> Again, most complaints have been directed towards writeln = 5. I think
> that's the major problem to be resolved.
>
Here's another, one that's pretty common:
class Person {
private string name_;
string name() {
return name_;
}
}
string[] split(string s, char separator) {
...
}
auto p = getPerson();
auto names = p.name.split(' '); // Doesn't compile - you need to do
p.name().split(' ');
More information about the Digitalmars-d
mailing list