Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: David Allsopp <dra-news@metastack.com>
To: sieira <jaimito.hendrix@gmail.com>,
	"caml-list@inria.fr" <caml-list@inria.fr>
Subject: RE: [Caml-list] Doubt about function delaration parameter
Date: Wed, 15 Dec 2010 16:37:01 +0000	[thread overview]
Message-ID: <E51C5B015DBD1348A1D85763337FB6D94905C262@Remus.metastack.local> (raw)
In-Reply-To: <30465308.post@talk.nabble.com>

sieira wrote:
> Thanks for your replies. I'm now having some issue with Raphael's
> suggestion of using (string * string) list;; as the menu type.
> 
> 
> type menu = (string*string) list;;
> 
> Results in a syntax error at the first parenthesis, while
> 
> type menu = string*string;;
> 
> fails too (at the asterisk)
> 
> It seems like I'm missing something. Since according to the
> http://caml.inria.fr/pub/docs/manual-caml-light/node3.5.html
> documentantion , this sintax should be right.
> 
> I'm using Camllight 0.81 by François Boisson running in Ubuntu lucid lynx

People on this list will reasonably assume you're using Objective Caml unless you say otherwise - this should have been at the top of your original post. I don't know and don't have access to an installation of caml light but looking at http://caml.inria.fr/pub/docs/manual-caml-light/node3.9.html it would appear to me as though type abbreviations (which is what you're doing) need == in Caml Light:

type menu == (string*string) list;;

... but I may well be wrong.


David

  reply	other threads:[~2010-12-15 16:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-15 14:03 sieira
2010-12-15 15:14 ` Ashish Agarwal
2010-12-15 15:18 ` Esther Baruk
2010-12-15 16:15 ` sieira
2010-12-15 16:37   ` David Allsopp [this message]
2010-12-15 16:56   ` Raphael Proust
2010-12-15 17:12     ` bluestorm

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=E51C5B015DBD1348A1D85763337FB6D94905C262@Remus.metastack.local \
    --to=dra-news@metastack.com \
    --cc=caml-list@inria.fr \
    --cc=jaimito.hendrix@gmail.com \
    /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