package com.quirkygaming.othniel;

import com.quirkygaming.othniel.pipes.Pipe;

public class CachedCall {
	private Pipe[] defIns;
	private Pipe[] defOuts;
	Pipe[] ins;
	Pipe[] outs;
	private Callable call;
	private int lineN;
	
	public CachedCall(Pipe[] ins, Callable call, Pipe[] outs, int lineN) {
		this.defIns = ins;
		this.defOuts = outs;
		this.call = call;
		this.lineN = lineN;
		this.ins = ins;
		this.outs = outs; // TODO might not work... errrrg
	}

	public void call() {
		call.call(ins, outs, this);
	}
	
	public void resetRuntime() { // Must be called by structure before run
		ins = defIns.clone();
		outs = defOuts.clone();
	}
	
	public int getLine() {return lineN;}
}

@@ -420,41 +420,8 @@
 uts;
- // TODO might not work... errrrg
 %0A%09%7D%0A
@@ -530,10 +530,18 @@
 led 
-by
+for inline
  str
@@ -546,16 +546,17 @@
 tructure
+s
  before 

Correct some old comments