Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as Lisp by jeosol ( 4 years ago )
(defun cube-eval (&optional (arg 100))                                                                                                                                                                                                    
  (swank-client:with-slime-connection (connection "localhost" 10001)                                                                                                                                                   
    (swank-client:slime-eval                                                                                                                                                                                           
     (quote                                                                                                                                                                                                            
      (handler-case                                                                                                                                                                                                    
        (mycube arg) ;; function to evaluate on remote lisp image; function exported from a mymath package
        (error (c)                                                                                                                                                                                                     
          (format t "We caught a condition.~&")                                                                                                                                                                        
          :error)))                                                                                                                                                                                                    
     connection)))

 

Revise this Paste

Parent: 112457
Children: 112459
Your Name: Code Language: