sva39060.scm 430 B

123456789101112131415
  1. (module-export <PublicClass> <PublicInterface>)
  2. (define-simple-class <PublicInterface> () interface: #t
  3. ((setup (argument :: <String>)) :: <void>
  4. #!abstract))
  5. (define-simple-class <PublicClass> (<Object>))
  6. (define-simple-class <PrivateClass> (<PublicInterface>)
  7. ((setup (argument :: <java.lang.String>)) :: <void>
  8. (format (current-output-port) "Argument was: ~a~%" argument)))
  9. (format #t "Done.~%")
  10. ;; Output: Done.