Why does the compiler let this happen

  • Thread starter Thread starter Guest
  • Start date Start date
Richard Blewett said:
I use it too and don't have problems with it either.

Goodo :)
Hmm, I can see this work for places where you want to perform validation on
the set and for decoupling the type of the property from the underlying
state but it falls apart for providing readonly properties (no-one can
update the value). I guess as another tool in the toolbox it would work.

It would be fairly easy to provide ways of getting round it:

1) Constructors could perhaps access the variables directly
2) An attribute applied to methods could allow access too - this
wouldn't reduce the usefulness much, as you'd have the
"yes, I really do mean this" sort of usage.
 
As Jon Skeet, so I have not had any problem, but i also have
a few years of Pascal & Delphi experience.

Another assist would be different default colors for Fields,
Properties, and Methods in the IDE.
--
Grace + Peace,
Peter N Roth
Engineering Objects International
http://engineeringobjects.com
Home of Matrix.NET


news:[email protected]...
 
Peter N Roth said:
As Jon Skeet, so I have not had any problem, but i also have
a few years of Pascal & Delphi experience.

Another assist would be different default colors for Fields,
Properties, and Methods in the IDE.

That would certainly make things a bit clearer, yes.
 
Back
Top