www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Function literals missing from docs

reply Billy Zelsnack <billy_zelsnack yahoo.com> writes:
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 

May 12 2004
next sibling parent reply J C Calvarese <jcc7 cox.net> writes:
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 

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
parent reply Billy Zelsnack <billy_zelsnack yahoo.com> writes:
 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
parent J C Calvarese <jcc7 cox.net> writes:
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 12 2004
prev sibling parent reply "Walter" <newshound digitalmars.com> writes:
"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

See www.digitalmars.com/d/expression.html#functionliterals
May 15 2004
parent reply Stewart Gordon <smjg_1998 yahoo.com> writes:
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
parent "Walter" <newshound digitalmars.com> writes:
Fixed. Thanks, -Walter
May 17 2004