<?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/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"
  prev="2002/12/e72db9d44668ae0bdb45767913040e75"
  next="2002/12/82e4b085cece1ac1bb93b992c7f2d862"
  prev-in-thread="2002/12/fe1dac17dece7db387b89b0911ccc432"
  next-in-thread="2002/12/82e4b085cece1ac1bb93b992c7f2d862"
  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>
Everyone,


 Well I decided to take dans advice and do a simple
forth like implementation. Overall it doesn't seem
like its going to be difficult at all. I have run into
a small snag. As a side note I have already decided
that this is note possible, this is just a last ditch
to see if there is a solution. 

 It has to do with the type system more then anything
else. I use a stack to handle data that the
interpreted process is manipulating. I provide a
specific set of words that this forth like language
will use to manipulate the stack. Of course, stacks
may only be of a single type 'a. So if declare a new
type to be

 type some_type = Int of int | Float of float | Word
of string 

Them my stack is some_type Stack.t 

 Ok this is all fine and dandy, until a few months
from now when I want to add a new type say File of
Unix.file_descr. The word implementations to support
the new type wouldn't actually be a problem. However,
extending the type seems to be impossible.

 The only way I can see to do this at the moment is to
modify the type and recompile the whole system. That
or come up with some type of indirect identifier
piece, but I would rather not do that. I played around
with polymorphic variants but that doesn't seem to buy
my anything here.

  Of course, since this is the first non-toy language
I have implemented I may be mifundamentalhing
fundimental.

Please forgive (and hopefully correct) any ignorance 
I am displaying here.

Thanks,
Eric

--- Dan Andersson &lt;rhq093s@tninet.se&gt; wrote:
&gt; Forth languages are almost trivial to implement.
&gt; 
&gt; /Dan Andersson
&gt; -------------------
&gt; To unsubscribe, mail caml-list-request@inria.fr
&gt; Archives: http://caml.inria.fr
&gt; Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ:
&gt; http://caml.inria.fr/FAQ/
&gt; Beginner's list:
http://groups.yahoo.com/group/ocaml_beginners


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------------
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>

