by phodo on 3/22/20, 4:19 AM with 35 comments
by bserfaty on 3/22/20, 10:50 AM
by franze on 3/22/20, 10:11 AM
Note: I might call it "Everything is better in quarantine." The goal would be to (not) go mad.
by japanoise on 3/22/20, 7:57 AM
The code generation looks interesting. I'll have to take another look later; can it not be done with the preprocessor?
by hendrikhalkow on 3/22/20, 1:07 PM
by hereisdx on 3/23/20, 4:36 AM
by disqard on 3/22/20, 11:29 AM
by gustavorg on 3/22/20, 11:45 AM
OBJECT *obj;
par->tag = src;
par->distance = *src == '\0' ? distNoObjectSpecified : distUnknownObject;
forEachObject(obj)
...
The initialization of the obj variable received an obliviate spell.Also function parseAndExecute (). The way he deal with invalid input is, epic:
static const COMMAND commands[] =
{
{executeQuit , "quit"},
{executeLookAround, "look"},
...
}
for (cmd = commands; !matchCommand(input, cmd->pattern); cmd++);
return (*cmd->function)();
by anthk on 3/22/20, 1:19 PM