[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]indexers with variable args
From: |
Gopal V |
Subject: |
Re: [DotGNU]indexers with variable args |
Date: |
Tue, 12 Nov 2002 05:18:22 +0530 |
User-agent: |
Mutt/1.2.5i |
If memory serves me right, Rhys Weatherley wrote:
> I tried to torture it with an indexer with only a set method ( :-) ).
Should a indexer access automatically obtain the correct indexer according
to lvalue/r ?...
public class foo
{
int this[int x] { get {return 0;} }
int this[float x] { set {} }
public static void Main()
{
a=new foo(); a[10]=12; //does it compile on CSC ?
}
}
This new one is the result of a whole night of caffeine...
> Cscctest test cases?
Added one ...
Gopal
--
The difference between insanity and genius is measured by success