]> Repositorios git - scryer-prolog.git/commitdiff
add dumb comments l1_final origin/l1_final
authorMark Thom <[email protected]>
Fri, 3 Feb 2017 07:49:16 +0000 (00:49 -0700)
committerMark Thom <[email protected]>
Fri, 3 Feb 2017 07:49:16 +0000 (00:49 -0700)
src/l1/machine.rs

index c1bdd375fdd8c138df9c59985d6a3d04405551a4..725d0f89d0e6352ee9e53e98e6446e8455079c0e 100644 (file)
@@ -182,6 +182,8 @@ impl Machine {
         match instr {
             &QueryInstruction::Call(ref name, arity) => {
                 // why is Option<&T> not Deref?!?!?
+                // is it because if the value is None, there's nothing to
+                // dereference?
                 let compiled_fact_index =
                     self.code_dir.get(&(name.clone(), arity))
                         .map(|index| *index);