On Wed, Sep 22, 2010 at 09:06:33PM -0400, Taylor Venable wrote:
#;1 (use coops)
#;2 (load coops-test-2.scm)
Note: implicitly defining generic-procedure: lols
#;3 (import foo)
#;4 (define instance (make a-class))
#;5 (lols instance)
5
#;6 (load coops-test-2.scm)
; loading coops-test-2.scm
From: Taylor Venable tay...@metasyntax.net
Subject: [Chicken-users] Question about COOPS, generic methods, and modules
Date: Wed, 22 Sep 2010 21:06:33 -0400
Hi there!
I found this while writing some code for work earlier (I'm lucky enough to
be able to write testing programs in the language
Hi there!
I found this while writing some code for work earlier (I'm lucky enough to
be able to write testing programs in the language of my choice). I define a
class and a generic method in a module in a file, then load it into the
REPL. I can make an instance of that class, binding it to a