18 Feb 11, 09:27PM
(18 Feb 11, 05:05AM)|BC|Wolf Wrote:(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
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.
I wish, otherwise I'd be an economist xD
I, for one, welcome our new robot overlords.
