Permalink
Browse files

Small changes

  • Loading branch information...
1 parent 586bc62 commit 4825b4b35e96731c62b07c2ac676baf172742dd4 @olabini committed May 6, 2011
Showing with 4 additions and 2 deletions.
  1. +1 −0 README
  2. +3 −2 src/ikj/main/ioke/lang/Interpreter.java
View
@@ -2,3 +2,4 @@
Ioke is a strongly typed, dynamic, prototype based programming
language. This documentation covers all the core objects of Ioke,
including methods, macros and specs for these.
+
@@ -20,10 +20,11 @@
*/
public class Interpreter {
public Object evaluate(IokeObject self, IokeObject ctx, Object ground, Object receiver) throws ControlFlow {
+ Runtime runtime = self.runtime;
Object current = receiver;
Object tmp = null;
String name = null;
- Object lastReal = self.runtime.getNil();
+ Object lastReal = runtime.getNil();
IokeObject m = self;
Message msg;
while(m != null) {
@@ -34,7 +35,7 @@ public Object evaluate(IokeObject self, IokeObject ctx, Object ground, Object re
} else if((name = msg.name.intern()) == ".") {
current = ctx;
} else if(name.length() > 0 && msg.arguments.size() == 0 && name.charAt(0) == ':') {
- lastReal = msg.cached = current = self.runtime.getSymbol(name.substring(1));
+ lastReal = msg.cached = current = runtime.getSymbol(name.substring(1));
} else {
if((current instanceof IokeObject) || IokeRegistry.isWrapped(current, ctx)) {
IokeObject recv = IokeObject.as(current, ctx);

0 comments on commit 4825b4b

Please sign in to comment.