static variables?

  • Thread starter Thread starter yellow1912
  • Start date Start date
Well, Jon, I'm tired of arguing about it. See you tomorrow, buddy!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition
 
Correct me if I'm wrong, but I seem to remember Anders Hejlsberg saying
something about "considering" the idea of being able to restrict access
to bits of object state to only certain methods. I believe he said that
it had appeal in certain situations, although I'd be stretching my
(awful) memory way to far to speculate on what those were.

Or I could be imagining the whole thing. Anyone else remember that
remark?
 
Bruce said:
Correct me if I'm wrong, but I seem to remember Anders Hejlsberg saying
something about "considering" the idea of being able to restrict access
to bits of object state to only certain methods. I believe he said that
it had appeal in certain situations, although I'd be stretching my
(awful) memory way to far to speculate on what those were.

Or I could be imagining the whole thing. Anyone else remember that
remark?

I don't remember hearing it, but I'd certainly welcome it (and have
submitted it as a request) for properties - it would be very nice to be
able to do something like:

public int Foo
{
private int foo;
public get { return foo; }
private set { foo = value; }
}

which would *force* code in the class itself to go through the
property.

Jon
 
Back
Top