Gauche ãããã°ã¡ã¢
以ä¸ã3ç¹ã»ããã§ä½¿ãã
- ãªã¼ãã¼ãã¯ã #?=
- (debug-print-width #f) ;; ãããå¿ããã¨æ å ±ãä¸é¨ããã§ãªããhttp://practical-scheme.net/gauche/man/gauche-refj_61.html#SEC166
- write-object http://practical-scheme.net/gauche/man/gauche-refj_57.html#SEC128 ã¯ã©ã¹å®ç¾©ãããå ´åã
ã³ã³ãã¤ã«æã®ç°å¢ãä¿æããããã®ã¯ã©ã¹
(define-class <env> () ((bindings :init-form (make-hash-table) :accessor bindings-of) (parent :init-keyword :parent :init-form #f :accessor parent-of))) (define-method write-object ((env <env>) port) (format port "#<env: bindings: ~a has-parent?: ~a~%" (length (hash-table-keys (bindings-of env))) (if (parent-of env) "yes" "no")) (hash-table-for-each (bindings-of env) (lambda (k v) (format port " ~a : ~s~%" k v))) (format port ">")) (debug-print-width #f)
注æã¨ãã¦ããã°ããæ©ãã ã®ã§ä¸å¿ã¡ã¢ãdebug-print-width ã¯å¤æ°ã§ã¯ãªã㦠parameter ã¨ãã奴ãªã®ã§ define ãã¦ã¯é§ç®ã
;; (define debug-print-width #f) ;; ééã (debug-print-width #f) ;; æ£ãã