Hi,

> My manager, an outstanding C++
> programmer, saw this code and got a little freaked out - he asked me if I
> had a bug, because it didn't possibly look like it could work.

Next time you meet an "outstanding C++ programmer" who doesn't understand 
functional programming point him to the boost libraries (www.boost.org). When 
I first discovered them I got freaked out:

for_each(a.begin(), a.end(), std::cout << _1 << ' ');

Spot the Lambda.

C++ really is a powerfull language and I guess that there is noone on earth 
who really is able to know everything about its possibilities - not even 
Bjarne Stroustrup.

Christof

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to