Advertisement
Guest User

goops noob issues

a guest
Jul 8th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.32 KB | None | 0 0
  1. % guile --version
  2. guile (GNU Guile) 2.1.0
  3.  
  4. % guile
  5. (use-modules (oop goops describe))
  6.  
  7. (define-class <complex-n> (<number>) r i)
  8. (define c1 (make <complex-n> 1 1))
  9. (describe c1)
  10. ;; ->
  11. ;; #<<complex-n> 93d8510> is an instance of class <complex-n>
  12. ;; Slots are:
  13. ;;      r = #<unbound>
  14. ;;      i = #<unbound>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement