Warning: session_start(): open(/var/lib/php/sessions/sess_jbs6ern3vkgmoq8s4o4o3mhmb9, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
sclass Entry {
S code;
transient F1 function;
bool error;
}
cmodule FunctionsOnStrings > DynObjectTable {
// API
F1 getFunction(S code) {
lock lock;
Entry e = objectWhere(data(), +code);
if (e == null) add(e = nu Entry(+code));
if (e.function == null && !e.error) {
print("Loading function: " + code);
try {
e.function = codeWithHintsToFunctionOnString(code);
} catch print e {
e.error = true;
}
}
ret e.function;
}
}