Posted 18 years ago
by Actipro Software Support
- Cleveland, OH, USA
Quick update... we've implemented indexers for the C# language for the upcoming maintenance release. This is great news and has been a highly-requested item.
However two notes... first, array item references which used to "appear" to work fine had only previously worked because of a certain flaw in our design. Now that indexer parameters are being processed properly, the new indexer functionality has broken array reference functionality. So for instance, this will no longer give proper IntelliPrompt:So to restate, arrays defined in code were never (and still aren't) properly being stored. The new indexer functionality exposes this bug a little more. We will be fixing this bug soon but it isn't a quick/easy change.
Second, generics with indexers still don't work. This is because we are not yet parsing the types used to construct the generic. This is the related scenario:However the good news here is that the indexers are being recognized and are working. It's just that it doesn't know how to resolve T to string yet. So with the update, we're half way there on this one.
[Modified at 03/08/2007 03:15 PM]
However two notes... first, array item references which used to "appear" to work fine had only previously worked because of a certain flaw in our design. Now that indexer parameters are being processed properly, the new indexer functionality has broken array reference functionality. So for instance, this will no longer give proper IntelliPrompt:
int[] a; a[0].
Second, generics with indexers still don't work. This is because we are not yet parsing the types used to construct the generic. This is the related scenario:
List<string> l; l[0].
[Modified at 03/08/2007 03:15 PM]
Actipro Software Support