Thread overview
[phobos] phobos commit, revision 1850
Aug 14, 2010
dsource.org
Aug 14, 2010
David Simcha
August 14, 2010
phobos commit, revision 1850


user: dsimcha

msg:
Slicing for Iota.

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

August 14, 2010
Are you using typeof(this) instead of auto in order to avoid the bug in ddoc?

Andrei

On 08/14/2010 10:19 AM, dsource.org wrote:
> phobos commit, revision 1850
>
>
> user: dsimcha
>
> msg:
> Slicing for Iota.
>
> http://www.dsource.org/projects/phobos/changeset/1850
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
August 14, 2010
Suggestion for saving some generated code:

enforce(upper >= lower);
enforce(upper <= this.length);

=>

enforce(upper >= lower && upper <= this.length);

Thanks for your ongoing effort to bring std.algorange up to snuff!


Andrei

On 08/14/2010 10:19 AM, dsource.org wrote:
> phobos commit, revision 1850
>
>
> user: dsimcha
>
> msg:
> Slicing for Iota.
>
> http://www.dsource.org/projects/phobos/changeset/1850
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
August 14, 2010
Force of habit mostly.  I'm so used to auto return being buggy that, even now that the nasty forward ref bug is fixed, I've gotten into the habit of not using it unless I really need it.

On 8/14/2010 1:13 PM, Andrei Alexandrescu wrote:
> Are you using typeof(this) instead of auto in order to avoid the bug in ddoc?
>
> Andrei
>
> On 08/14/2010 10:19 AM, dsource.org wrote:
>> phobos commit, revision 1850
>>
>>
>> user: dsimcha
>>
>> msg:
>> Slicing for Iota.
>>
>> http://www.dsource.org/projects/phobos/changeset/1850
>>
>> _______________________________________________
>> 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
>