On Tue, Mar 10, 2009 at 3:34 PM, Eduardo Cavazos <wayo.cava...@gmail.com>wrote:
> >> I noticed that gl and glut libraries were added to Jazz recently. Very
> >> nice!
> >> Is it possible to "load" them into a Jazz repl interactively? I.e.
> >> ~ # jazz
> >> JazzScheme v2.1.3 beta
> >> > (... type something here to load gl)
> Guillaume Cartier wrote:
> > That feature was in fact added a couple weeks ago! See the message:
> "Library
> > require / import / export now special forms" for details.
> Looks good!
> > With it, you can now enter the following at the console to get access to
> > opengl functionality:
> > (import (jazz.graphic.opengl))
> Hmmm, is there a way to get this to work at a jazz repl started at a
> shell? I get an error when I try that:
> ~ # jazz
> JazzScheme v2.1.3 beta
> > (import (jazz.graphic.opengl))
> *** ERROR IN (console)@1.2 -- Unbound variable: import
> 1>
> Ed
There is no such thing as "a jazz repl started at a shell". When you run
jazz.exe you are running a Gambit repl exactly as if you had started gsi but
with some code already loaded to implement the Jazz module system. That is
why it doesn't understand the Jazz language.
For (import (jazz.graphic.opengl)) to work, you have to use the Jedi repl.
Note that creating a minimal app that would be just a single window with a
Jazz repl in it for new comers to do quick experiments would be a nice
project.
Guillaume