| Home >> All >> com >> memoire >> [ silk Javadoc ] |
Source code: com/memoire/silk/SilkContinuation.java
1 2 3 package com.memoire.silk; 4 import com.memoire.silk.*; 5 6 7 8 /** @author Peter Norvig, peter@norvig.com http://www.norvig.com 9 * Copyright 1998 Peter Norvig, see http://www.norvig.com/license.html */ 10 11 public class SilkContinuation extends SilkProcedure { 12 13 RuntimeException cc = null; 14 public Object value = null; 15 16 public SilkContinuation(RuntimeException cc) { this.cc = cc; } 17 18 public Object apply(SilkScheme interpreter, Object args) { 19 value = first(args); 20 throw cc; 21 } 22 }