I think tie() should be removed because it is unsafe. Masahiro, could
you please look into that?
We should discuss alternative means, but I strongly believe whatever
abstractions we add should be, if at all possible, safe. But tie() is
not appropriate.
Andrei
On 05/10/2010 05:22 AM, Masahiro Nakagawa wrote:
Hi,
Currently, Phobos has Tuple but doesn't have tie.
So I implemented tie for std.typecons.Tuple.
http://www.bitbucket.org/repeatedly/scrap/src/tip/tie_.d
Original author is 9rnsr but his version is a bit messy and overkill.
I substantially rewrote his tie.
- clear syntax (tie(&n, &d) => tie(n, d))
- Implicit conversion
I would like to suggest this tie is integrated into phobos.
What do you think of this?
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos