Thread overview
Function literals missing from docs
May 12, 2004
Billy Zelsnack
May 12, 2004
J C Calvarese
May 12, 2004
Billy Zelsnack
May 12, 2004
J C Calvarese
May 15, 2004
Walter
May 17, 2004
Stewart Gordon
May 17, 2004
Walter
May 12, 2004
They are in the Wiki, but are missing from the docs??

http://www.prowiki.org/wiki4d/wiki.cgi?DWiki/FunctionLiterals

It might be a good idea to mention the term 'anonymous delegates' in the docs so the C#2.0 crowd doesn't think they are missing from D.
May 12, 2004
Billy Zelsnack wrote:
> They are in the Wiki, but are missing from the docs??
> 
> http://www.prowiki.org/wiki4d/wiki.cgi?DWiki/FunctionLiterals
> 
> It might be a good idea to mention the term 'anonymous delegates' in the docs so the C#2.0 crowd doesn't think they are missing from D.

I guess it doesn't actually come out and say this in the spec, but I think it gets pretty close: http://www.digitalmars.com/d/function.html#closures

I agree that we need more comprehensive documentation. That's why I've been working on a tutorial: http://www.dsource.org/tutorials/

-- 
Justin (a/k/a jcc7)
http://jcc_7.tripod.com/d/
May 12, 2004
> I guess it doesn't actually come out and say this in the spec, but I think it gets pretty close: http://www.digitalmars.com/d/function.html#closures

The tricky business for me was getting the syntax right and that wasn't in the docs. What made it worse is that when I was trying random combinations to guess the syntax, I forgot the semi-colon at the end which didn't help things any.
May 12, 2004
Billy Zelsnack wrote:
>> I guess it doesn't actually come out and say this in the spec, but I think it gets pretty close: http://www.digitalmars.com/d/function.html#closures
> 
> The tricky business for me was getting the syntax right and that wasn't in the docs. What made it worse is that when I was trying random combinations to guess the syntax, I forgot the semi-colon at the end which didn't help things any.

Yes, I agree. I don't know how much of these details Walter plans to put in the spec, but obviously more info is better for those of us trying to program in D.

I've just added these examples to the dsource tutorial project:
http://www.dsource.org/tutorials/index.php?show_example=77
http://www.dsource.org/tutorials/index.php?show_example=76

(I also discovered that "fp = foo;" should be "fp = &foo;", so I fixed the Wiki4D. I'd fix the original at DWiki, too, but that server's down again.)

-- 
Justin (a/k/a jcc7)
http://jcc_7.tripod.com/d/
May 15, 2004
"Billy Zelsnack" <billy_zelsnack@yahoo.com> wrote in message news:c7uakq$9nu$1@digitaldaemon.com...
> They are in the Wiki, but are missing from the docs??
>
> http://www.prowiki.org/wiki4d/wiki.cgi?DWiki/FunctionLiterals
>
> It might be a good idea to mention the term 'anonymous delegates' in the docs so the C#2.0 crowd doesn't think they are missing from D.

See www.digitalmars.com/d/expression.html#functionliterals


May 17, 2004
Walter wrote:

<snip>
> See www.digitalmars.com/d/expression.html#functionliterals

HTML anchor names are case sensitive.  At least according to both Mozilla and the standard.

Stewart.

-- 
My e-mail is valid but not my primary mailbox, aside from its being the unfortunate victim of intensive mail-bombing at the moment.  Please keep replies on the 'group where everyone may benefit.
May 17, 2004
Fixed. Thanks, -Walter