unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* The proper init script
@ 2019-08-14 13:26 Nala Ginrut
  0 siblings, 0 replies; only message in thread
From: Nala Ginrut @ 2019-08-14 13:26 UTC (permalink / raw)
  To: Guile User

Hi folks!
I'm implementing Lua front-end seriously. However, I'd like to make sure
the module is pure without any predefined Scheme procedures. Because the
predefined 'string' object conflicts with 'string' procedure of Scheme.

For Lua script running or compilation, I can set a generator with
#:make-default-environment in language spec.scm. And it works fine.

However, I want to run this code in the REPL when I switch to Lua language.
--------------------------------code-----------------------------------
(set-current-module (define-module* '(lua) #:pure #t))
---------------------------------end------------------------------------
Of course, I can run it first, then switch to Lua, and it works.
Now my question is, how can it run automatically when I switch the language?

I've tried '.guile`, and it seems useless.
How can I do it properly?

Best regards.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-14 13:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-14 13:26 The proper init script Nala Ginrut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).