unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* How to "sandbox" scripts
@ 2020-04-17  6:27 Brad Medeiros
  0 siblings, 0 replies; only message in thread
From: Brad Medeiros @ 2020-04-17  6:27 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 805 bytes --]

Hi All - I haven't been active on these mailing lists, but I've been
reading them for a bit of time now.   Nice to actually reach out!

I am building a simple game engine and I'm embedding guile in it to do game
scripting.
One property I want is the ability to write scripts where each defines a
function - eg onFrame, onMouseMove, and so on, and then call these.

Currently I do this via calling scm_c_primitive_load to actually run the
initial evaluation and then I call back into hooks -
scm_call_0(scm_c_lookup("onFrame"));  So far it has been working great.

What I would like to do, is to be able to load multiple scripts that define
the same set of functions, and then iterate over them calling each's
onFrame.   Ideally these should be sandboxed as much as possible.

Any ideas of how to do this?

[-- Attachment #2: Type: text/html, Size: 934 bytes --]

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

only message in thread, other threads:[~2020-04-17  6:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17  6:27 How to "sandbox" scripts Brad Medeiros

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).