[DGD] Errors on console with continuations
nikoroleva
natasha.i.koroleva at gmail.com
Wed Feb 27 10:35:06 CET 2019
Just updated to latest cloud-server lib and getting errors on the
console when using distributed continuations and adding continuations
together. Here are some samples.
static void echo(object user, string str) {
user->message(str + "\n");
}
/* ok */
void cmd_cont1(object user, string cmd, string str) {
Continuation c;
if (!str) {
str = "the sound of silence";
}
c = new Continuation("echo", user, str);
c->runNext();
}
/* Bad argument 1 (int) for function _F_continued */
void cmd_cont2(object user, string cmd, string str) {
Continuation c;
if (!str) {
str = "the sound of silence";
}
c = new Continuation("echo", user, "echo 1 " + str);
c += new Continuation("echo", user, "echo 2 " + str);
c->runNext();
}
/* Too many arguments for function _F_timeoutContinuation */
void cmd_cont3(object user, string cmd, string str) {
Continuation c;
c = new DistContinuation(users(),
1,
"message",
"Your significant mind notices the fabric of space.\n");
c->runNext();
}
More information about the DGD
mailing list