1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
;; -*-theme-d-*-
;; Copyright (C) 2015, 2021 Tommi Höynälänmaa
;; Distributed under GNU General Public License version 3,
;; see file doc/GPL-3.
;; Expected results: translation and running OK
(define-proper-program (tests test281)
(import (standard-library core)
(tests test280)
(standard-library console-io))
(define-simple-method disp (((obj <object>)) <none> nonpure)
(console-display obj)
(console-newline))
(define-main-proc (() <none> nonpure)
(let ((a (make-a 10))
(b (make-b 5 -1.1)))
(disp (my-rep a "gtk"))
(disp (my-rep b "pango"))
(disp (get-x a))
(disp (get-x b))
(disp (get-y b))
(set-x! a -1)
(set-x! b 6)
(set-y! b 2.1)
(disp (get-x a))
(disp (get-x b))
(disp (get-y b)))))
|