1 ;; This file demonstrates the overloading capabilities of SWIG
3 (load-library 'example "overload.so")
9 Trying low level code ...
12 (define A-FOO (new-Foo))
13 (define ANOTHER-FOO (new-Foo A-FOO)) ;; copy constructor
15 (Foo-bar ANOTHER-FOO \"another string\" 3)
19 (primitive:foo "some string")
20 (define A-FOO (slot-ref (primitive:new-Foo) 'swig-this))
21 (define ANOTHER-FOO (slot-ref (primitive:new-Foo A-FOO) 'swig-this)) ;; copy constructor
22 (primitive:Foo-bar A-FOO 2)
23 (primitive:Foo-bar ANOTHER-FOO "another string" 3)
29 Trying TinyCLOS code ...
31 (+foo+ \"some string\")
32 (define A-FOO (make <Foo>))
33 (define ANOTHER-FOO (make <Foo> A-FOO)) ;; copy constructor
35 (-bar- ANOTHER-FOO \"another string\" 3)
40 (define A-FOO (make <Foo>))
41 (define ANOTHER-FOO (make <Foo> A-FOO)) ;; copy constructor
43 (bar ANOTHER-FOO "another string" 3)