Advertisement
Guest User

Untitled

a guest
Jun 17th, 2011
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;; The expansion looks good, I'd say...
  2.  
  3. (case
  4.     dir
  5.   (#<EdgeDirection INOUT> nil)
  6.   identity
  7.   #<EdgeDirection OUT>
  8.   (fn [i] (normal-edge? i))
  9.   #<EdgeDirection IN>
  10.   (fn [i] (not (normal-edge? i)))
  11.   (throw (FunTGException. (format "Unknown direction %s" dir))))
  12.  
  13. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  14.  
  15. (defn- direction-matcher
  16.   [dir]
  17.   (case+ dir
  18.          (EdgeDirection/INOUT nil) identity
  19.          EdgeDirection/OUT         (fn [i] (normal-edge? i))
  20.          EdgeDirection/IN          (fn [i] (not (normal-edge? i)))
  21.          (throw (FunTGException.
  22.                  ^String (format "Unknown direction %s" dir)))))
  23.  
  24. ;; I get this compile error at the defn- above:
  25.  
  26. Unknown location:
  27.   error: java.lang.RuntimeException: Can't embed object in code, maybe print-dup not defined: INOUT
  28.  
  29. core.clj:333:1:
  30.   error: java.lang.RuntimeException: Can't embed object in code, maybe print-dup not defined: INOUT, compiling:(/home/horn/uni/repos/funtg/src/de/uni_koblenz/funtg/core.clj:333)
  31.  
  32. Compilation failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement