Jump to page: 1 2
Thread overview
array slicing
Dec 16, 2004
Charles
Re: (no) array slicing (because of efficiency)
Dec 17, 2004
Benjamin Herr
Dec 17, 2004
Stewart Gordon
Dec 17, 2004
Lionello Lunesu
Dec 17, 2004
Ben Hinkle
Dec 17, 2004
Benjamin Herr
Dec 17, 2004
Ben Hinkle
Dec 17, 2004
Lionello Lunesu
Dec 17, 2004
Ben Hinkle
Dec 17, 2004
Benjamin Herr
Dec 17, 2004
Ben Hinkle
Dec 17, 2004
Stewart Gordon
December 16, 2004
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


December 17, 2004
Charles wrote:
> using negative numbers to indicate starting from the end of the array

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
December 17, 2004
Charles wrote:
> 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

http://www.digitalmars.com/drn-bin/wwwnews?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.
December 17, 2004
> Been talked to death already, starting from

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...)


December 17, 2004

> Are we (people interested in D) really satisfied if only bugs got fixed
and
> D remained the way it is now?

i am


December 17, 2004
Ben Hinkle wrote:
>> Are we (people interested in D) really satisfied if
>> only bugs got fixed and D remained the way it is now?
> 
> i am

I am not! *troll*
December 17, 2004
"Benjamin Herr" <ben@0x539.de> wrote in message news:cpv0qd$2gju$1@digitaldaemon.com...
> Ben Hinkle wrote:
> >> Are we (people interested in D) really satisfied if
> >> only bugs got fixed and D remained the way it is now?
> >
> > i am
>
> I am not! *troll*

I'm confused. why the *troll*?


December 17, 2004
what's troll?? :-&

"Ben Hinkle" <bhinkle@mathworks.com> wrote in message news:cpv19s$2hao$1@digitaldaemon.com...
>
> "Benjamin Herr" <ben@0x539.de> wrote in message news:cpv0qd$2gju$1@digitaldaemon.com...
>> Ben Hinkle wrote:
>> >> Are we (people interested in D) really satisfied if
>> >> only bugs got fixed and D remained the way it is now?
>> >
>> > i am
>>
>> I am not! *troll*
>
> I'm confused. why the *troll*?
>
> 


December 17, 2004
"Lionello Lunesu" <lionello.lunesu@crystalinter.remove.com> wrote in message news:cpv1pl$2hvc$1@digitaldaemon.com...
> what's troll?? :-&

see http://en.wikipedia.org/wiki/Internet_troll



December 17, 2004
Lionello Lunesu wrote:
>> Been talked to death already, starting from
> 
> You mean "it wasn't accepted before so fo'getaboutit!" ?
<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.
« First   ‹ Prev
1 2