A few simple syntactic proposals

Jason House jason.james.house at gmail.com
Wed Apr 16 19:01:56 PDT 2008


Robert Fraser wrote:
> Also:
> Remove the implicit "length" inside slice brackets as it conflicts with
> outer length. Allow only $.

Can you give an example of this?

are you saying char[] foo = bar[3..length] should be replaced with char[]
foo = bar[3..$]?  If yes, I don't see how the length is confusing.  If
you're talking about nested indexing, I'd expect both length and $ to be
ambiguous.



More information about the Digitalmars-d mailing list