Proposal: Package aliases

Ary Borenszweig ary at esperanto.org.ar
Thu May 15 18:05:31 PDT 2008


Robert Fraser escribió:
> Bill Baxter wrote:
>> In theory, you don't have to because you can just use public members 
>> when you start out.  Property syntax gives you a way to hide those 
>> members later on if necessary.
> 
> You can use public members in C++ and Java, too...

But if you change them to methods later, at least in Java you'd have to 
append "()" after each call... or if you want to be standard, rename it 
to get...()

Or just right click on the field in Eclipse and select Refactor -> 
Encapsulate Field... ;-)

(well, but that breaks compatibility with existing clients)



More information about the Digitalmars-d mailing list