Closed
Description
Currently, std::select::select
is defined like pub fn select<A: Select>(ports: &mut [A]) -> uint
but that is too strict. What if one wants to select over two ports of different types? It seems ugly to me that the alternative is to box the ports into pub fn select(ports: &mut [&Select])
but I can't think of a better alternative. This issue also applies to selecting between a Port
, and a PortOne
. I guess another way to work around this would be to implement Select
for &Select
objects.
Metadata
Metadata
Assignees
Labels
No labels