On Tue, 30 Oct 2007 23:19:50 +0100, Ivan Voras wrote:
> Re: C++: This:
>
> for (vector::iterator it = v.begin(); it != v.end(); ++it)
>
> still looks pretty ugly but at least it's known to almost any CS/IT
> undergrad out there.
>
> My personal choice of a "C++ done right" language is D, it has this
> variant:
>
> foreach(i, a; args)
> writefln("args[%d] = '%s'", i, a);


You can do something like that in c++, for example with boost::foreach:

#include
#define foreach BOOST_FOREACH

foreach(int i, v) {
}

_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"