From: Garry Hodgson <garry@sage.att.com>
To: ocaml <caml-list@inria.fr>
Subject: [Caml-list] what does this mean?
Date: Tue, 16 Apr 2002 13:28:23 -0400 [thread overview]
Message-ID: <3CBC5F37.1DC83003@sage.att.com> (raw)
i'm getting en error message i don't understand in the following code
fragment. foo.ml is:
let regions = Hashtbl.create 64
type location = { name:string; mutable nodes:string list }
type region = { name:string; coords:(int*int*int*int); countries:string
list }
let addRegion name0 coords0 ccs =
let r = { name=name0; coords=coords0; countries=ccs } in
Hashtbl.add regions name0 r
when i comp[ile, i get:
$ ocamlc foo.ml
File "foo.ml", line 9, characters 13-20:
This expression has type ('a, 'b) Hashtbl.t but is here used with type
(string, region) Hashtbl.t
The type constructor region would escape its scope
can someone explain what this means, and perhaps how to resolve it?
thanks
--
Garry Hodgson Let my inspiration flow
Senior Hacker in token rhyme suggesting rhythm
Software Innovation Services that will not forsake me
AT&T Labs 'til my tale is told and done.
garry@sage.att.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
next reply other threads:[~2002-04-16 17:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-16 17:28 Garry Hodgson [this message]
2002-04-16 18:06 ` Eric C. Cooper
2002-04-16 19:26 ` Garry Hodgson
[not found] ` <3CBC64F8.B677F621@recherche.enac.fr>
[not found] ` <3CBC7B46.9EB83B57@sage.att.com>
2002-04-17 9:18 ` Nicolas barnier
2004-04-13 4:26 [Caml-list] What " skaller
2004-04-13 14:00 ` skaller
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=3CBC5F37.1DC83003@sage.att.com \
--to=garry@sage.att.com \
--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