Thread overview
[phobos] phobos commit, revision 1517
May 17, 2010
dsource.org
May 22, 2010
Masahiro Nakagawa
May 22, 2010
SHOO
May 22, 2010
Masahiro Nakagawa
May 17, 2010
phobos commit, revision 1517


user: Masahiro Nakagawa

msg:
bugzilla 3873 std.range.repeat should have popBack defined

http://www.dsource.org/projects/phobos/changeset/1517

May 22, 2010
I don't think popFront and popBack should be const, even though for some degenerate ranges they could.

Andrei

On 05/17/2010 11:34 AM, dsource.org wrote:
> phobos commit, revision 1517
>
>
> user: Masahiro Nakagawa
>
> msg:
> bugzilla 3873 std.range.repeat should have popBack defined
>
> http://www.dsource.org/projects/phobos/changeset/1517
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
May 23, 2010
For unity of range?


On Sat, 22 May 2010 23:12:57 +0900, Andrei Alexandrescu <andrei at erdani.com> wrote:

> I don't think popFront and popBack should be const, even though for some degenerate ranges they could.
>
> Andrei
>
> On 05/17/2010 11:34 AM, dsource.org wrote:
>> phobos commit, revision 1517
>>
>>
>> user: Masahiro Nakagawa
>>
>> msg:
>> bugzilla 3873 std.range.repeat should have popBack defined
>>
>> http://www.dsource.org/projects/phobos/changeset/1517
>>
>> _______________________________________________
>> phobos mailing list
>> phobos at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/phobos
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos

May 22, 2010
If you mean for uniformity of range, yes, popBack and popFront should be there. All I'm saying is they should not be const. I don't think anyone having a const range would be in the mood of popping from it.

Andrei

On 05/22/2010 11:39 AM, Masahiro Nakagawa wrote:
> For unity of range?
>
>
> On Sat, 22 May 2010 23:12:57 +0900, Andrei Alexandrescu <andrei at erdani.com> wrote:
>
>> I don't think popFront and popBack should be const, even though for some degenerate ranges they could.
>>
>> Andrei
>>
>> On 05/17/2010 11:34 AM, dsource.org wrote:
>>> phobos commit, revision 1517
>>>
>>>
>>> user: Masahiro Nakagawa
>>>
>>> msg:
>>> bugzilla 3873 std.range.repeat should have popBack defined
>>>
>>> http://www.dsource.org/projects/phobos/changeset/1517
>>>
>>> _______________________________________________
>>> phobos mailing list
>>> phobos at puremagic.com
>>> http://lists.puremagic.com/mailman/listinfo/phobos
>> _______________________________________________
>> phobos mailing list
>> phobos at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/phobos
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
May 23, 2010
If it is just what you say, I think it should be described in the document. About the range, I want a more detailed design or guideline.

Andrei Alexandrescu ????????:
> If you mean for uniformity of range, yes, popBack and popFront should be there. All I'm saying is they should not be const. I don't think anyone having a const range would be in the mood of popping from it.
> 
> Andrei
> 

May 22, 2010
I agree that a formal document would be good. Let's postpone writing that until we gain more experience with everything.

Andrei

On 05/22/2010 12:45 PM, SHOO wrote:
> If it is just what you say, I think it should be described in the document. About the range, I want a more detailed design or guideline.
>
> Andrei Alexandrescu ????????:
>> If you mean for uniformity of range, yes, popBack and popFront should be there. All I'm saying is they should not be const. I don't think anyone having a const range would be in the mood of popping from it.
>>
>> Andrei
>>
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
May 23, 2010
I understood your opinion. I added const to methods because it is my
style(I lost the context :( ).
OK, I will delete const from Repeat and my codes related range.


On Sun, 23 May 2010 02:12:01 +0900, Andrei Alexandrescu <andrei at erdani.com> wrote:

> If you mean for uniformity of range, yes, popBack and popFront should be there. All I'm saying is they should not be const. I don't think anyone having a const range would be in the mood of popping from it.
>
> Andrei
>
> On 05/22/2010 11:39 AM, Masahiro Nakagawa wrote:
>> For unity of range?
>>
>>
>> On Sat, 22 May 2010 23:12:57 +0900, Andrei Alexandrescu <andrei at erdani.com> wrote:
>>
>>> I don't think popFront and popBack should be const, even though for some degenerate ranges they could.
>>>
>>> Andrei
>>>