Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Christopher A. Watford" <christopher.watford@gmail.com>
To: Normand Leclerc <leclercn@globetrotter.net>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Ocamlwin.exe Flaky ?
Date: Tue, 23 Nov 2004 23:11:05 -0500	[thread overview]
Message-ID: <8008871f04112320116471ec3@mail.gmail.com> (raw)
In-Reply-To: <2226355.20041123215234@globetrotter.net>

I'll tell you this, there is no clean way to get stdin with OCamlWin
at the moment. I should probably look into rewriting the entire
internals that handle reading to and from the pipe. The actual system
that would work the best is statically linking the top level INTO the
application, keeping me from having to pipe in from a command window,
which is why it 'consistantly crashes' when reading from stdin.

I'll run it in debug mode, see if I can hotfix your crash, however, if
it is dealing with reading stdin, I wouldn't get your hopes up for the
moment.

Christopher Watford
http://dorm.tunkeymicket.com/OCamlWinPlus/Release

On Tue, 23 Nov 2004 21:52:34 -0500, Normand Leclerc
<leclercn@globetrotter.net> wrote:
> Hi,
> 
> I asked this to the beginner's list but the answer was elliptic.
> I re-ask it here.
> 
> OcamlWin.exe is consistently crashning.  I don't know if it
> is because of SP2 of WinXP, but I would be surprised, as the rest
> is holding well.  Also, I do not have the choice of Win.
> 
> In general, OcamlWin is working, butI crash it from I/O, when reading the keyboard :
> print_string "What's your name ? ";
>   flush stdout;
>   let answer = input_line stdin in
>   print_string ("Hello " ^ answer);
>   print_string ", nice to meet you!\n";
> 
> Also, apart of an Emacs mode, is it possible to redirect the
> interpreter's output to my small editor with with I do my own handy
> auto-completion.  I do it with other languages,
> but never found the way to do it with Ocaml.
> 
> As a matter of fact, even .Ocamlinit in the same directory of
> OcamlWin.exe is not able to change the working directory with
> directives.
> 
> Thanks for any help.
> --
> Norm.
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>


  reply	other threads:[~2004-11-24  4:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-24  2:52 Normand Leclerc
2004-11-24  4:11 ` Christopher A. Watford [this message]
2004-11-24  4:22   ` [Caml-list] " Christopher A. Watford

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=8008871f04112320116471ec3@mail.gmail.com \
    --to=christopher.watford@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=leclercn@globetrotter.net \
    /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