Simen Kjaeraas wrote:
Lars Tandle Kyllingstad <[email protected]> wrote:// I personally find the following pretty elegant, but // perhaps a bit verbose? And I don't see Tuple being // used much elsewhere in Phobos. (Why?) Tuple!(Pid, "pid", int, "status") waitAny();This is my favorite. I always feel that Tuple is a bit verbose, I believe it's due to the strings. Still, I wish it were used more, as it is an elegant solution and one that shows off D's power (some).
That would be my fave as well. Its use is picking up, and I think it should become the preferred Phobos style. It's self-descriptive and very convenient to use with auto.
Andrei _______________________________________________ phobos mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/phobos
