From: "Jun P. Furuse" <Jun.Furuse@inria.fr>
To: caml-list@inria.fr
Subject: Re: [English only, sorry] O'Labl hands off the standard library?
Date: Fri, 11 Apr 1997 14:17:58 +0200 [thread overview]
Message-ID: <199704111217.OAA01155@pauillac.inria.fr> (raw)
In-Reply-To: Your message of Fri, 11 Apr 1997 00:28:16 -0700. <199704110728.AAA02160@kronstadt.rahul.net>
> Hi. I'm quite intrigued by the polymorphic variant type system
> extension in O'Labl and I would like to try it; but I thoroughly
> dislike the other parts of O'Labl (labels and optionals). Is there a
> way to apply just parts of the Ocaml -> O'Labl patch to get just the
> polymorphic variants and nothing else? I realize that nothing forces
> me to actually _use_ labels and optionals, except --- the standard
> library gets labelized! So, I'd be willing to have the entire compiler
> patch applied, if only the library is left alone. Please?
O'Labl without labels ... It is no longer O'Labl ... Anyway, use olabl
or olablc with the -nolabels command line option. With this option,
you do not need to put labels.
% olabl -nolabels
# let x = String.sub;;
val x : string -> pos:int -> len:int -> string = <fun>
# x "aiu" pos: 0 len: 1;;
- : string = "a"
# x "aiu" 0 1;;
- : string = "a"
# x we: "aiu" are: 0 ignored: 1;;
- : string = "a"
Still the types are with labels , but O'Labl ignores them. Of course,
you lose the free order applications and the optional arguments.
-----------------------------------------------------------------------
Jun P. Furuse Jun.Furuse@inria.fr
INRIA
Institut National de Recherche en Informatique et en Automatique
prev parent reply other threads:[~1997-04-14 13:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-11 7:28 Ian T Zimmerman
1997-04-11 9:41 ` Jacques GARRIGUE
1997-04-11 12:17 ` Jun P. Furuse [this message]
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=199704111217.OAA01155@pauillac.inria.fr \
--to=jun.furuse@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