Ahoy Sailors!
So first up I do mean D & not C, I've been learning D since yesterday so I'm not quite one hundred percent on this yet, Currently I'm trying to send some text between a Client & Server script, Then execute the text in the native shell. However I get these errors.
Slave.d(20): Error: function tango.stdc.stdlib.system (char*) does not match parameter types (uint)
Slave.d(20): Error: cannot implicitly convert expression (inco) of type uint to char*
void main()
{
auto server = new Socket();
server.connect(new InternetAddress ("127.0.0.1", 866));
while(2){
char[1024] buf;
auto inco = server.read(buf);
Stdout("Received: ", buf[0..inco]).newline;
system(inco);
}
}
Someone else helped me on most of that (Who'd a thunk it?), Could anyone please elaborate on what's wrong?
Thanks Bye!