aboutsummaryrefslogtreecommitdiff
path: root/php/step7_quote.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/step7_quote.php')
-rw-r--r--php/step7_quote.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/php/step7_quote.php b/php/step7_quote.php
index 2ccd130..b035be0 100644
--- a/php/step7_quote.php
+++ b/php/step7_quote.php
@@ -133,13 +133,10 @@ _ref('eval', function($ast) {
_ref('slurp', function($f) {
return file_get_contents($f);
});
-_ref('slurp-do', function($f) {
- return "(do " . file_get_contents($f) . ")";
-});
// Defined using the language itself
rep("(def! not (fn* (a) (if a false true)))");
-rep("(def! load-file (fn* (f) (eval (read-string (slurp-do f)))))");
+rep("(def! load-file (fn* (f) (eval (read-string (str \"(do \" (slurp f) \")\")))))");
if (count($argv) > 1) {
for ($i=1; $i < count($argv); $i++) {