From 4ac9b64bc299b273e91e62acd938d7139dbf38a0 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 6 Feb 2019 13:42:04 -0500 Subject: [PATCH] Added TODO Reject function that contains globals since the value of those globals could change, invaliding the cache. --- analyze-pure-fncs.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/analyze-pure-fncs.scm b/analyze-pure-fncs.scm index 31361e76..0f56e194 100644 --- a/analyze-pure-fncs.scm +++ b/analyze-pure-fncs.scm @@ -38,7 +38,9 @@ ) ((quote? exp) exp) ((const? exp) #t) - ((ref? exp) exp) + ((ref? exp) + TODO: if exp is a global, return false + exp) ((define? exp) (return #f)) ((set!? exp)