Re: C# should generalize the property and indexers to property index

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Lord Crc (lordcrc_at_hotmail.com)
Date: 03/18/04


Date: Thu, 18 Mar 2004 16:26:08 +0100

On Wed, 17 Mar 2004 08:55:57 GMT, v-jetan@online.microsoft.com
("Jeffrey Tan[MSFT]") wrote:

>What does "A" and "B" mean? I think you can give any string to it. This is
>not a good design, and the C# compiler can not recognize it.

And? If A and B were not indexed properties, your "argument" would
still hold.

This is one thing that i miss so much, i break the golden rule for it
(at least for my internal stuff), ie returning arrays.

There's no issue for the compiler to correctly identify and resolve

  foo = myObj.A[ i ];
  bar = myObj.B[ j ];

beyond what it already does for regular properties.

- Asbjørn



Relevant Pages

  • Re: why still use C?
    ... OOP in general tends to be slower. ... As if the compiler didn't know... ... > their associated method functions from a design perspective. ... as a language design I feel it has failed. ...
    (comp.lang.c)
  • Compiler positions available for week ending August 14
    ... Subject: Job openings at Tensilica ... TIE compiler engineer ... work on the TIE compiler. ... talented team changing the nature of silicon-based design. ...
    (comp.compilers)
  • Re: writeObject signature
    ... > or the compiler must do a cast to Object. ... Java refers to a syntax for type conversion -- namely, ... it would be wrong (or bad design) to ...
    (comp.lang.java.programmer)
  • Re: Inside an FBI Computer Forensics Lab
    ... You should be comparing a hardware engineer who puts ... design done in a hardware description language. ... My compiler is open source also. ... The attack involves compromising the compiler before the hash ...
    (alt.privacy)
  • Re: Another $17.4 Billion WASTED
    ... program from shrouded code is anything but "pathetically simple". ... perhaps with user-selected features and compiler ... uncommented code from a programmer that is using ... the detailed software design document put together by the PHD that ...
    (rec.autos.driving)