This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: The gh_enter question


-----BEGIN PGP SIGNED MESSAGE-----

>I've noticed upon catching up on my e-mail that a new release of Guile
>is planned for somewhere in the near future. I hope the annoying API
>change of gh_enter can be resolved sometime before then. [...]
>I earlier outline two possible solutions: [...]

I'm glad someone else cares about this issue too!  (See my earlier post, at
http://totoro.red-bean.com/guile/guile/2811.html).

I like your idea of having two versions of gh_enter.  Allow me to suggest
two modifications to your proposal.

1) Call the sans-boot-9 version "gh_enter_sans_init" instead of
"gh_enter_sans_boot_9".  There is no reason to reveal arcane details like
boot-9.scm to the caller, and the exact initialization sequence might
change in the future anyway.

2) Instead of loading boot-9 directly, use my patch (see the above URL).
Basically, my patch shares the initialization code with the repl via a
scm_load_init function.  This confers the following advantages:

	a) If the init files are ever changed, you only have to modify one
place in the Guile source.  (Actually, even in the current version, the
initialization does slightly more than simply loading boot-9.scm.  It also
loads a file called init.scm.)

	b) My scm_load_init keeps track of how many times it has been
called, so that you only load the init files once even if you call gh_repl
after/within gh_enter.

I wish that there were a better way of submitting patches for inclusion in
the Guile distribution than just posting to the guile list.  Currently, it
seems that they are likely to simply be forgotten if they aren't acted upon
immediately.  It is somewhat discouraging to write improvements to the
source only to have your patches ignored (even a rejection, with a reason,
would be better than simply drifting off into limbo).

Cordially,
Steven G. Johnson


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0 for non-commercial use <http://www.pgp.com>
Charset: noconv

iQEVAwUBNXXfPu3fOMhN2WfhAQGH5wf7B/CvI2VyOWKxOT4tASd87KyfIbSZnaZy
SFCDr/q/rb3xpVGny0OCttPtGUws3fqxSPMDczeyg/f49ut2gESizHOkVRBCu7L0
XfR4Fitcp6WovciKvDjv6Tu6Ij/IA6rcgc5DtCJh/DXri0NjgKWIiiEMVJkGfdUi
k9+AbcjXxI2d78T3fuE91vKC8RyLQcLhEygnWdpbhQBfT3nZxCQLFzNnnwbnDs12
a6k2sEdGYMkIqFBA1fY64A8rOOZ2ts5WiycXA4EXN9gINJiRQbBm8seospMe2Kcz
7ykc2ZtevTCSncqgOEMdj1lXPQOqM1QxalPVmTLtIcBZKBD9ufzvHQ==
=pe3b
-----END PGP SIGNATURE-----