Re: Inheritance of constructors.
- From: "Jon Skeet [C# MVP]" <skeet@xxxxxxxxx>
- Date: Mon, 30 Jun 2008 08:02:20 -0700 (PDT)
On Jun 30, 3:23 pm, A n g l e r <p|k|o|n|i|u|...@xxxxxxxxxxxxxxxxxxx>
wrote:
I don't really understand what you mean by the last sentence. Could
you give a concrete example in code of what you'd like to be able to
do?
<snip>
// aa.base.arr stays unchanged unless I'll update it. In case of memory
// references it wouldn't be any concern as long as all this happens in
// one thread
Your example is made somewhat trickier by the fact that one variable
is static, the other isn't, but they both have the same name. Avoiding
making fields public helps too :) I'm also not sure where threading
comes into it particularly...
But yes, your point that the field is a just reference rather than
something which automatically keeps track of a different variable is
correct. I can't remember when I've ever wanted the latter behaviour
though.
Jon
.
- Follow-Ups:
- Re: Inheritance of constructors.
- From: A n g l e r
- Re: Inheritance of constructors.
- References:
- Inheritance of constructors.
- From: A n g l e r
- Re: Inheritance of constructors.
- From: Jon Skeet [C# MVP]
- Re: Inheritance of constructors.
- From: A n g l e r
- Re: Inheritance of constructors.
- From: Jon Skeet [C# MVP]
- Re: Inheritance of constructors.
- From: A n g l e r
- Re: Inheritance of constructors.
- From: A n g l e r
- Re: Inheritance of constructors.
- From: Jon Skeet [C# MVP]
- Re: Inheritance of constructors.
- From: A n g l e r
- Inheritance of constructors.
- Prev by Date: Re: Inheritance of constructors.
- Next by Date: Re: convert query to DLinq
- Previous by thread: Re: Inheritance of constructors.
- Next by thread: Re: Inheritance of constructors.
- Index(es):
Relevant Pages
|