This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Starting a repl within a package
Jost Boekemeier <jostobfe@erdbeere.zrz.TU-Berlin.DE> writes:
> For debugging purposes I want to examine and change the contents of a
> module's protected variable(s) (but I don't want to change the
> bindings).
What might be reasonable is to add a new syntax (module-package "FOO").
This would override the -P flag to set the default package name for
a .scm file or a repl. This shouldn't be too difficult to do.
> Umm, btw. (set! (invoke (object (<getX>) ((field (this) 'x)))) 'getX) doesn't work
> as expected, but I guess this merely shows my ignorance about how generic-set
> really works... :)
You can't (set! (invoke ...) ...), because the invoke does not have a
setter. Nor should it - it doesn't seem to make much sense.
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/