This is the mail archive of the guile@sourceware.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: Translators again


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

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