<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/12/929cf3de63092c381f0fd5077ca2add1"
  from="issac@u..."
  author="issac@u..."
  date="2002-12-18T12:41:32"
  subject="Re: [Caml-list] ocaml embedded scripting language"
  prev="2002/12/0858fa6c3c46f5754466e6b01c0c30f4"
  next="2002/12/6605ee05df88c5773dd5ef8b29731da3"
  prev-in-thread="2002/12/843d2bc18ce708d2e97d0d6a0118ab48"
  next-in-thread="2002/12/60982b9a869e59ef914da149ae0cfce7"
  prev-thread="2002/12/b842fa0bde343ece5699d91c444d6e07"
  next-thread="2002/12/f566cd61147cbd280839f2be813cce5a"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] [Q] opengl bindings without tcl/tk">
<msg 
  url="2002/12/d1fe91a7143c27a0eff87d4d142f116e"
  from="SooHyoung Oh &lt;shoh@d...&gt;"
  author="SooHyoung Oh"
  date="2002-12-10T08:27:17"
  subject="[Caml-list] [Q] opengl bindings without tcl/tk">
<msg 
  url="2002/12/97c668992e7082fee9aef9aeb8f522ce"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2002-12-10T08:37:58"
  subject="Re: [Caml-list] [Q] opengl bindings without tcl/tk">
<msg 
  url="2002/12/4db92d885f25abeb12b667f7260c24a2"
  from="Olivier Andrieu &lt;andrieu@i...&gt;"
  author="Olivier Andrieu"
  date="2002-12-10T11:17:12"
  subject="Re: [Caml-list] [Q] opengl bindings without tcl/tk">
<msg 
  url="2002/12/e1ac75aaf2bd8e19f9cdb8dcfae122b0"
  from="Jean-Christophe Filliatre &lt;Jean-Christophe.Filliatre@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2002-12-10T13:54:38"
  subject="Re: [Caml-list] [Q] opengl bindings without tcl/tk">
</msg>
</msg>
<msg 
  url="2002/12/c4ba00600622149fddf0cb86f13305a9"
  from="Eric Merritt &lt;cyberlync@y...&gt;"
  author="Eric Merritt"
  date="2002-12-10T14:54:31"
  subject="Re: [Caml-list] [Q] opengl bindings without tcl/tk">
<msg 
  url="2002/12/c95b11021e001a134a0db0118f5d4e6c"
  from="issac@u..."
  author="issac@u..."
  date="2002-12-13T20:22:31"
  subject="Re: [Caml-list] [Q] opengl bindings without tcl/tk">
<msg 
  url="2002/12/2c8f7d6b9b1885644ef28358e29ed407"
  from="Eric Merritt &lt;cyberlync@y...&gt;"
  author="Eric Merritt"
  date="2002-12-13T21:06:17"
  subject="Re: [Caml-list] [Q] opengl bindings without tcl/tk">
</msg>
<msg 
  url="2002/12/6d731c14475e72121d97ee43a298c377"
  from="Eric Merritt &lt;cyberlync@y...&gt;"
  author="Eric Merritt"
  date="2002-12-14T01:52:17"
  subject="[Caml-list] ocaml embedded scripting language">
<msg 
  url="2002/12/9b8d1aa343f39e5ab08f75b52eaac8db"
  from="Norman Ramsey &lt;nr@e...&gt;"
  author="Norman Ramsey"
  date="2002-12-15T10:05:28"
  subject="Re: [Caml-list] ocaml embedded scripting language ">
<msg 
  url="2002/12/acba0b61710801f4e17bdce72f0c007f"
  from="Eric Merritt &lt;cyberlync@y...&gt;"
  author="Eric Merritt"
  date="2002-12-16T14:49:52"
  subject="Re: [Caml-list] ocaml embedded scripting language ">
</msg>
</msg>
<msg 
  url="2002/12/dcef1473d1a3389ba1585d4e2d4bb51a"
  from="Dan Andersson &lt;rhq093s@t...&gt;"
  author="Dan Andersson"
  date="2002-12-15T15:11:21"
  subject="Re: [Caml-list] ocaml embedded scripting language">
<msg 
  url="2002/12/fe1dac17dece7db387b89b0911ccc432"
  from="Eric Merritt &lt;cyberlync@y...&gt;"
  author="Eric Merritt"
  date="2002-12-16T14:51:52"
  subject="Re: [Caml-list] ocaml embedded scripting language">
</msg>
<msg 
  url="2002/12/5ae385fa3f6f5e647351e5f201e6cbd6"
  from="Eric Merritt &lt;cyberlync@y...&gt;"
  author="Eric Merritt"
  date="2002-12-17T08:29:26"
  subject="Re: [Caml-list] ocaml embedded scripting language">
<msg 
  url="2002/12/82e4b085cece1ac1bb93b992c7f2d862"
  from="Basile STARYNKEVITCH &lt;basile@s...&gt;"
  author="Basile STARYNKEVITCH"
  date="2002-12-17T08:37:22"
  subject="Re: [Caml-list] ocaml embedded scripting language">
<msg 
  url="2002/12/f12042c110518f5027dd6a8f04b08de8"
  from="Eric Merritt &lt;cyberlync@y...&gt;"
  author="Eric Merritt"
  date="2002-12-17T14:26:46"
  subject="Re: [Caml-list] ocaml embedded scripting language">
<msg 
  url="2002/12/0858fa6c3c46f5754466e6b01c0c30f4"
  from="Dan Andersson &lt;rhq093s@t...&gt;"
  author="Dan Andersson"
  date="2002-12-17T21:30:55"
  subject="Re: [Caml-list] ocaml embedded scripting language">
<msg 
  url="2002/12/843d2bc18ce708d2e97d0d6a0118ab48"
  from="Norman Ramsey &lt;nr@e...&gt;"
  author="Norman Ramsey"
  date="2002-12-19T20:41:17"
  subject="Re: [Caml-list] ocaml embedded scripting language ">
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2002/12/929cf3de63092c381f0fd5077ca2add1"
  from="issac@u..."
  author="issac@u..."
  date="2002-12-18T12:41:32"
  subject="Re: [Caml-list] ocaml embedded scripting language">
<msg 
  url="2002/12/60982b9a869e59ef914da149ae0cfce7"
  from="Norman Ramsey &lt;nr@e...&gt;"
  author="Norman Ramsey"
  date="2002-12-19T20:41:35"
  subject="Re: [Caml-list] ocaml embedded scripting language ">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2002/12/ea8d8eb3a37db767292914aa4b2fa7e9"
  from="Sven Luther &lt;luther@d...&gt;"
  author="Sven Luther"
  date="2002-12-10T08:38:16"
  subject="Re: [Caml-list] [Q] opengl bindings without tcl/tk">
</msg>
<msg 
  url="2002/12/88abaa55b2ba3b03d913061bd8642afb"
  from="Nickolay Semyonov-Kolchin &lt;snob@s...&gt;"
  author="Nickolay Semyonov-Kolchin"
  date="2002-12-10T12:45:05"
  subject="Re: [Caml-list] [Q] opengl bindings without tcl/tk">
</msg>
</msg>
</thread>

<contents>
Eric Merritt wrote:
&gt; Everyone,
&gt; 
&gt; 
&gt;  Well I decided to take dans advice and do a simple
&gt; forth like implementation. Overall it doesn't seem
&gt; like its going to be difficult at all. I have run into
&gt; a small snag. As a side note I have already decided
&gt; that this is note possible, this is just a last ditch
&gt; to see if there is a solution. 
&gt; 
&gt;  It has to do with the type system more then anything
&gt; else. I use a stack to handle data that the
&gt; interpreted process is manipulating. I provide a
&gt; specific set of words that this forth like language
&gt; will use to manipulate the stack. Of course, stacks
&gt; may only be of a single type 'a. So if declare a new
&gt; type to be
&gt; 
&gt;  type some_type = Int of int | Float of float | Word
&gt; of string 
&gt; 
&gt; Them my stack is some_type Stack.t 
&gt; 
&gt;  Ok this is all fine and dandy, until a few months
&gt; from now when I want to add a new type say File of
&gt; Unix.file_descr. The word implementations to support
&gt; the new type wouldn't actually be a problem. However,
&gt; extending the type seems to be impossible.
&gt; 
&gt;  The only way I can see to do this at the moment is to
&gt; modify the type and recompile the whole system. That

OCaml can be used as a scripting language, so this doesn't
have to be a problem.  Just use the #load, #directory, and
#use toplevel directives, and little or no compiling is 
necessary.  However this seems to require restructuring the
program, so maybe it won't be worth it.

Another way would be to have a facility for adding 
new types within your extension language.
If you add a start-up file (something like ~/.my_extension_lang_rc)
then you can load all your favorite types whenever it runs.

Issac
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

