[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] Fix line numbers in error messages inside
Re: [Chicken-hackers] [PATCH] Fix line numbers in error messages inside modules
Sat, 12 May 2012 16:09:56 +0200
On Sat, May 12, 2012 at 04:03:23PM +0200, Felix wrote:
> "module" is not supposed to work anywhere besides in a toplevel context
> (this is documented, AFAIK).
I think so too. However, some flexibility is nice when generating
modules programmatically from a macro; that's why I was asking about it.
If a module is just "lifted" up from the expression so that it functions
exactly the same whether in a let or at toplevel, it might be a bit more
flexible. But again, this is a Nice To Have, and absolutely not critical
for the next release.
> The s48-modules tests appear to work for me.
> Or do you mean whjen put in a "let" context?
I mean when compiling "run.scm", then trying to run it.
> > I guess the module name itself should be stripped as well as the exported
> > symbols, since modules are "global". I guess that's also the reason
> > strip-syntax was being used.
> That's correct. I will add this now.
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth