This has probably already been mentioned , and I know D's not implementing
new features , but what about using negative numbers to indicate starting
from the end of the array
char [] x = "comma,";
char [] y = x[0 .. -1]; // y is 'comma'
No special charaters , no new keywords , no scoping rules ( is length still
a keyword in slicing ? ).
Thoughts ?
Charlie

I think the issue is that this would require run time checks for the
sign of the array index, which would be unneccessary in a lot of cases.
If you require this feature, you might want to use a more sophisticated
Array class anyway.
-Ben

This has probably already been mentioned , and I know D's not implementing
new features , but what about using negative numbers to indicate starting
from the end of the array
char [] x = "comma,";
char [] y = x[0 .. -1]; // y is 'comma'

<snip>
Been talked to death already, starting from
D/24082
As has the fact that the 'group you're posting on is deprecated. Taking
to digitalmars.D....
Stewart.
--
My e-mail is valid but not my primary mailbox. Please keep replies on
the 'group where everyone may benefit.

You mean "it wasn't accepted before so fo'getaboutit!" ?
Another reason we need some standard for arguing about suggestions. Everyone
with a suggestion gets tired at some point and stops explaining / improving
his exception. It's kind of silly to forget about some suggestion just
because Walter hasn't had the time to reply/react/implement it.
Are we (people interested in D) really satisfied if only bugs got fixed and
D remained the way it is now?
(I'm not)
Lionello
(Damn, I know only too well what happens if one person, me in this case,
changes the tone of a conversation on a newsgroup. Should I rewrite my post?
I didn't accuse anyone, so this post seems clean... to me...)

<snip>
No. I mean that there has already been a discussion on this idea, and
so the OP might as well look at what was said there, rather than just
let the debate repeat itself with potentially no new content.
Stewart.
--
My e-mail is valid but not my primary mailbox. Please keep replies on
the 'group where everyone may benefit.