From: Fabrice Le Fessant <fabrice.le_fessant@inria.fr>
To: caml-list@inria.fr
Subject: Contrib: toplevel for native code
Date: Fri, 12 Mar 1999 16:42:29 +0100 (CET) [thread overview]
Message-ID: <14057.13797.583838.363164@talbot.inria.fr> (raw)
I have integrated a new library "toplevel" in the Efuns package version 0.06.
This new library can be used in any bytecode or native program to
evaluate ocaml expressions (strings terminated with ;;) in the same
manner as with a toplevel. Look at the interface in
toplevel/dyneval.mli. An example can be found in gwml/main.ml
with a function that reads on stdin, looks for ";;",
sends the command to Dyneval.eval and prints the result (using
Utils.printexn (in common/) when it is an exception).
As a consequence, GwML has a new option -talk to
enable the user to enter ocaml expressions on stdin. For
example, you can enter "Stdconfig.auto_raise := false;;" on the
toplevel to suppress the auto-raise.
------------------------------------------------------------------------
Here is a list of other changes since version 005:
GwML:
=====
* New option -talk: Enter ocaml expressions on stdin to be evaluated by Gwml
(like a toplevel) (* only if build with toplevel library *)
* Virtual: The pager view is modified when windows are moved/resized/unmapped.
* Stdconfig:
- Placement policies can now be specified with add_placement.
- Special placement policy "near_mouse" for several popup windows (Netscape,etc).
* Several bug fixed by Jerome Vouillon:
- size_hints are now correctly read and updated.
- window size updated on client demand.
- no setInputFocus when destination window is not visible
- XV bug partially fixed
Xlib:
=====
* XGraphics: Added new update styles (do not update the screen immediatly.
Wait for explicit refresh request (either total, or clipped)) with
two new functions XGraphics.set_update_style and XGraphics.update
(look at demo/pacman.ml for an example)
* Xpm: new function "createMLStringFromPixmapData" to
convert a pixmap data into a caml syntax string
(to integrate Pixmaps in ocaml sources).
* Time bug (32 bits truncated to 31) fixed.
* New Demo files in efuns/demo:
- "pacman" game (using the XGraphics module) from Sylvain Conchon.
- "xpm2ml" to translate .xpm files to .ml files (directly usable with
Xpm.createPixmapFromData).
-----------------------------------------------------------------------
Sources:
http://pauillac.inria.fr/para/cdrom/prog/unix/efuns/efuns-006.src.tar.gz
Efuns page:
http://pauillac.inria.fr/para/cdrom/prog/unix/efuns
- Fabrice LE FESSANT
Homepage: http://pauillac.inria.fr/~lefessan
reply other threads:[~1999-03-12 17:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14057.13797.583838.363164@talbot.inria.fr \
--to=fabrice.le_fessant@inria.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox