(Was: On 80 columns should (not) be enough for everyone)

foobar foo at bar.com
Tue Feb 1 08:44:14 PST 2011


Adam Ruppe Wrote:

> Steven Schveighoffer wrote:
> > It does help, but I was kind of hoping for something that shows the
> > structure.
> 
> Those relationships are in the HTML too.... try it now:
> http://arsdnet.net/d-web-site/std_algorithm.html
> 
> (I know it needs some work still, I'm just sick of Javascript after
> spending 20 minutes tracking down a bug caused by me using the
> same variable name twice! Gah! And wow do I miss foreach.)

var foo = [bar, baz];
foo.forEach(function (elem) { 
    elem.doSomthing(); 
});

Available since version 1.6


More information about the Digitalmars-d mailing list