Changeset 24647 for lang/commonlisp

Show
Ignore:
Timestamp:
11/22/08 20:29:18 (5 years ago)
Author:
quek
Message:

remove example1, now dispatch is not funcallable-object.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/commonlisp/cl-win32ole/trunk/example/ie.lisp

    r10948 r24647  
    11(eval-when (:compile-toplevel :load-toplevel :execute) 
    2   (require :cl-win32ole) 
     2  (asdf:oos 'asdf:load-op :cl-win32ole) 
    33  (use-package :cl-win32ole)) 
    4  
    5 (defun ie-example1 () 
    6   (let ((ie (create-object "InternetExplorer.Application"))) 
    7     (with-slots (visible busy document) ie 
    8       (setf visible t) 
    9       (funcall ie :navigate "http://sbcl.sourceforge.net/") 
    10       (loop while busy 
    11          do (sleep 0.5)) 
    12       (format t "document title is \"~a\".~%" (slot-value document :title)) 
    13       (sleep 3)) 
    14     (funcall ie :quit))) 
    154 
    165(defun ie-example2 () 
     
    3120      (loop while busy do (sleep 0.5)) 
    3221      (with-slots (all) document 
    33         (p (invoke all :tags "A"))))) 
    34   ) 
     22        (print (invoke all :tags "A"))) 
     23      (ole ie :quit))))