This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Translators again
- To: Lalo Martins <lalo at webcom dot com>
- Subject: Re: Translators again
- From: Jost Boekemeier <jostobfe at linux dot zrz dot TU-Berlin dot DE>
- Date: 07 Feb 2000 19:40:51 +0100
- Cc: guile at sourceware dot cygnus dot com
- References: <E12BoUY-00045z-00@mdj.nada.kth.se> <20000122103754.A20164@webcom.com> <200001221424.OAA00939@ossau> <20000122130652.E20164@webcom.com> <200001222302.XAA01773@ossau> <20000131165013.E1102@webcom.com> <200002040009.AAA00495@ossau> <20000207021416.F23210@webcom.com>
Lalo Martins <lalo@webcom.com> writes:
> On Fri, Feb 04, 2000 at 12:09:58AM +0000, Neil Jerram wrote:
> > Lalo Martins writes:
> >
> > Oh. And what about ``eval''? The situation where I want to
> > execute a string of user input? Remember that Guile is also for
> > extension :-)
> >
> > Sorry, I don't follow - please explain a little further.
>
> If the user inputs a line of code for extension in my program,
> how am I supposed to know what language it is?
1. One repl per module (per package).
2. The module may override the default repl.
Example:
(define-module (m) :use-module (lang tcl))
1 + 1; -> 2
<control-d>
;; back in meta environment
(define-module (n) :use-module (oop goops))
define-generic -> generic
<control-d>
;; back in meta environment
<control-d>
# back on shell level
Jost