puniverse / pulsar

Fibers, Channels and Actors for Clojure
http://docs.paralleluniverse.co/pulsar/
Other
911 stars 53 forks source link

Passing a symbol bound in let to gen-server throws an exception. #69

Closed luminusian closed 7 years ago

luminusian commented 7 years ago
(let [x (reify actors/Server
          (init [_]))]
  (actors/gen-server x))
CompilerException java.lang.RuntimeException: Unable to resolve var: x in this context
(actors/gen-server
  (reify actors/Server
    (init [_])))
=>
#object[co.paralleluniverse.actors.behaviors.ServerActor
        0x3131b172
        "ServerActor@3131b172[owner: null]"]