On Tuesday, 13 November 2018 at 07:10:26 UTC, Jamie wrote:
Is this possible? I can't get it to work in the way I'm showing
above.
...or abstract away Ali's solution:
enum OPTION {
FALSE,
TRUE,
}
template Select(OPTION opt, IfTrue, IfFalse) {
static if (opt == OPTION.TRUE) alias S
On Tuesday, 13 November 2018 at 07:29:30 UTC, Ali Çehreli wrote:
On 11/12/2018 11:10 PM, Jamie wrote:
> I would like my class to inherit from one of two classes ...
> Is this possible? I can't get it to work in the way I'm
showing above.
> Cheers
I got it working inside an eponymous template. D
On Tuesday, 13 November 2018 at 07:10:26 UTC, Jamie wrote:
I would like my class to inherit from one of two classes based
on a boolean value known at compile time. Something like this:
void main()
{
Top!(OPTION.FALSE) top = new Top!(OPTION.FALSE);
}
enum OPTION
{
FALSE = 0.,
TRUE =
I want to connect to a server and communicate with ssh.
So I tried to spawn the process of ssh using pipeProcess
function, and read/write with its pipe's stdin and stdout.
But I don't know how many lines are sent from the server for an
input, so readln function blocks.
I think this can be s
On 11/13/18 8:52 AM, Sobaya wrote:
I want to connect to a server and communicate with ssh.
So I tried to spawn the process of ssh using pipeProcess function, and
read/write with its pipe's stdin and stdout.
But I don't know how many lines are sent from the server for an input,
so readln func
On Tuesday, 13 November 2018 at 13:52:57 UTC, Sobaya wrote:
I want to connect to a server and communicate with ssh.
So I tried to spawn the process of ssh using pipeProcess
function, and read/write with its pipe's stdin and stdout.
But I don't know how many lines are sent from the server for