[OT] Re: Targeting C

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Oct 23 11:08:06 PDT 2009


Steven Schveighoffer wrote:
> On Fri, 23 Oct 2009 12:50:34 -0400, Andrei Alexandrescu 
> <SeeWebsiteForEmail at erdani.org> wrote:
> 
>>> What does iota mean?
>>
>> http://www.digitalmars.com/d/2.0/phobos/std_range.html#iota
>>
>> Irony minded. I'm destroyed.
> 
> Hm... this is slightly off topic, but that function signature is 
> absolutely horrendous (in fact, I thought you linked to the wrong place 
> at first).  Isn't there any way to avoid putting half the type 
> construction as the return value?  Do all range-creating functions 
> suffer from this problem?  Maybe it's just a ddoc problem.

I wanted to use auto, but ddoc cannot document functions with auto returns.

Andrei

P.S. It looks like TDPL will scream today through the 100,000 words 
barrier (at 97,781 words now, see and track at www.erdani.com). When 
that happens, I'll celebrate by making another excerpt available online.



More information about the Digitalmars-d mailing list