From: Wolfgang Lux <lux@heidelbg.ibm.com>
To: Vyskocil Vladimir <vyskocil@math.unice.fr>
Cc: Caml list <caml-list@inria.fr>
Subject: Re: Unbound row variable in #basic_bloc
Date: Mon, 09 Jun 97 13:46:23 +0100 [thread overview]
Message-ID: <9706091146.AA50181@idse.heidelbg.ibm.com> (raw)
In-Reply-To: (Your message of Fri, 06 Jun 97 17:23:42 O.) <33982B7E.532E30C7@math.unice.fr>
> Bonjour,
>
> J'ai pas trouve l'explication de ce message d'erreur dans la documention
> d'objective caml 1.05. Cela survient lorsque je fait :
>
> type node_t=#basic_bloc
>
> Si quelqu'un pouvait me donner des indications ?
Yes (sorry, it seems as if I should learn french real soon now, but
until then you live with an english answer only :-).
Let us assume you has defined basic_bloc as follows:
class basic_bloc () method do_nothing = ()
end
then the types basic_bloc and #basic_bloc would be have been defined as
follows:
basic_bloc = < do_nothing : unit >
#basic_bloc = < do_nothing : unit; .. >
Note the ellipsis ".." in the second. This is an anonymous row
variable. (Row variables are used to describe and type extensible
records, but in the implementation of Ocaml they are not available to
user. Actually the only row variable you will ever encouter in Ocaml
explicitly is the ellipsis ".."). Row variables, just like type
variables must be bound somewhere, but if you try to define
type node_t = #basic_bloc
then ".." is unbound.
Regards
Wolfgang
prev parent reply other threads:[~1997-06-10 7:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-06 15:23 Vyskocil Vladimir
1997-06-09 8:59 ` Jerome Vouillon
1997-06-09 12:46 ` Wolfgang Lux [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=9706091146.AA50181@idse.heidelbg.ibm.com \
--to=lux@heidelbg.ibm.com \
--cc=caml-list@inria.fr \
--cc=vyskocil@math.unice.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