Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: sieira <jaimito.hendrix@gmail.com>
To: caml-list@inria.fr
Subject: re[Caml-list] cursive type definition camllight
Date: Wed, 19 Jan 2011 10:10:03 -0800 (PST)	[thread overview]
Message-ID: <30712448.post@talk.nabble.com> (raw)


I'm implementing a graphical interface in camllight on which there are forms.
I've defined a form as

type form == textbox list * (form,customer list -> customer list);;

This form displays some textboxes (using graphics library) on which the user
types the necessary data, after that, it is parsed and tailed to the
returned customer list. It is necessary that the function that does this
takes the form as a parameter. ¿Is this possible?

Otherwise, i could do:

type form == textbox list * (field_values list,customer list -> customer
list);;

but I would like to avoid it in order to keep a clean code.

Thanks in advance for your replies.


-- 
View this message in context: http://old.nabble.com/recursive-type-definition-camllight-tp30712448p30712448.html
Sent from the Caml Discuss mailing list archive at Nabble.com.



             reply	other threads:[~2011-01-19 18:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-19 18:10 sieira [this message]
2011-01-20  9:32 ` [Caml-list] Re: recursive " Damien Doligez

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=30712448.post@talk.nabble.com \
    --to=jaimito.hendrix@gmail.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