18 Feb 11, 05:05AM
(16 Feb 11, 07:53AM)V-Man Wrote: Sections of AC code should be part of the Jeopardy trivia.
Answer: These 23 lines of code give rise to the main way CubeScripts are stored in memory.
Question: What is
[SELECT ALL] Code:void alias(const char *name, const char *action)
{
ident *b = idents->access(name);
if(!b)
{
ident b(ID_ALIAS, newstring(name), newstring(action), persistidents, execcontext);
idents->access(b.name, b);
}
else if(b->type==ID_ALIAS)
{
if(contextisolated[execcontext] && execcontext > b->context)
{
conoutf("cannot redefine alias %s in this execution context", b->name);
return;
}
if(b->action!=b->executing) delete[] b->action;
b->action = newstring(action);
if(b->persist!=persistidents) b->persist = persistidents;
}
else conoutf("cannot redefine builtin %s with an alias", name);
}
COMMAND(alias, ARG_2STR);
Probably about lies. Wow, that is as confusing as economy.