Add a whole bunch of chicken runme scripts, and fix the bugs exposed by those scripts

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7155 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
John Lenz 2005-04-15 05:23:14 +00:00
commit 420ba48099
72 changed files with 1085 additions and 412 deletions

View file

@ -7,7 +7,7 @@ TARGET = class
INCLUDE =
SWIGOPT =
CFLAGS =
VARIANT = _csc
VARIANT =
# uncomment the following lines to build a static exe (only pick one of the CHICKEN_MAIN lines)
#CHICKEN_MAIN = test-lowlevel-class.scm

View file

@ -64,8 +64,9 @@
(display "\nGuess I'll clean up now\n")
;; Note: this invokes the virtual destructor
(delete-Shape c)
(delete-Shape s)
(set! c #f)
(set! s #f)
(gc #t)
(set! s 3)
(display (Shape-nshapes))

View file

@ -20,7 +20,7 @@
;; ----- Access a static member -----
(display "\nA total of ")
(display (nshapes))
(display (Shape-nshapes))
(display " shapes were created\n")
;; ----- Member data access -----
@ -67,9 +67,9 @@
;; Note: Invoke the virtual destructors by forcing garbage collection
(set! c 77)
(set! s 88)
;(gc #t)
(gc #t)
(display (nshapes))
(display (Shape-nshapes))
(display " shapes remain\n")
(display "Goodbye\n")