summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MLKReadEvalPrintLoop.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/MLKReadEvalPrintLoop.m b/MLKReadEvalPrintLoop.m
index a6eb267..b5710f2 100644
--- a/MLKReadEvalPrintLoop.m
+++ b/MLKReadEvalPrintLoop.m
@@ -92,8 +92,11 @@ static const char *prompt (EditLine *e) {
globalContext]
withEnvironment:[MLKLexicalEnvironment
globalEnvironment]];
-
- printf ("%s\n", [[result descriptionForLisp] UTF8String]);
+
+ if (result)
+ printf ("%s\n", [[result descriptionForLisp] UTF8String]);
+ else
+ printf ("()\n");
}
NS_HANDLER
{