
14 Feb
2011
14 Feb
'11
2:46 p.m.
AMDG On 2/11/2011 6:01 AM, Jeff Flinn wrote:
So having stdin, stdout, stderr Initializers with constructors or factory functions:
stdin_from() stdin_from(const path&) stdin_from(const file_descriptor_source&) stdin_from(const file_descriptor_ray&)
stdout_to() stdout_to(const path&) stdout_to(const file_descriptor_sink&) stdout_to(const file_descriptor_ray&)
stdout_to() stderr_to(const path&) stderr_to(const file_descriptor_sink&) stderr_to(const file_descriptor_ray&)
is to me conceptually much simpler than dealing with stream behaviour, stream end and context classes. It also minimizes copying and heap allocated handles.
I have to say that I prefer the use of stream_id to having separate functions for each stream. In Christ, Steven Watanabe