Re: Rationale for CS0536?
- From: "elvis_the_king@xxxxxx" <elvis_the_king@xxxxxx>
- Date: 12 Sep 2005 14:02:27 -0700
Daniel O'Connell [C# MVP] schrieb:
> Thread t = ...;
> t.Sleep(10);
>
> What does that look like its doing to you? To me it looks like its putting
> the thread referenced by t to sleep, however, its not. It is putting the
> current thread to sleep since Sleep is a static method. If you did around
> you will find alot of examples where that occurs.
Well, that sounds reasonable; but I would just consider that a bad
design or even naming problem, nothing that would have to be
interdicted by the language itself?
Besides that - I think I've seen compiler errors that say static
members have to be qualified with a type name, not an instance
(CS0176)? But probably that gets off-topic here.
.
- Follow-Ups:
- Re: Rationale for CS0536?
- From: Daniel O'Connell [C# MVP]
- Re: Rationale for CS0536?
- References:
- Rationale for CS0536?
- From: elvis_the_king
- Re: Rationale for CS0536?
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Rationale for CS0536?
- From: elvis_the_king@xxxxxx
- Re: Rationale for CS0536?
- From: Daniel O'Connell [C# MVP]
- Rationale for CS0536?
- Prev by Date: Re: How to create a MSN Messenger Plugin
- Next by Date: Re: Network Share Drives
- Previous by thread: Re: Rationale for CS0536?
- Next by thread: Re: Rationale for CS0536?
- Index(es):
Relevant Pages
|
|