From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id BF09ABB83 for ; Sat, 8 Jul 2006 17:05:02 +0200 (CEST) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k68F528p030734 for ; Sat, 8 Jul 2006 17:05:02 +0200 Received: by nf-out-0910.google.com with SMTP id d4so347742nfe for ; Sat, 08 Jul 2006 08:05:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Z+UoyUzK13cGLwf+XkeIzqsx6rbKEfmwI8wcWS5vZSZGsrjxmdG7lKWosp8pbRzOjh5CGC1uxw/8o5cHi47XhtkKtFdkXPhIJ6G3BggOtD6ff44ON6iGzgzJGt/hFu/48Gzd/S/jfhDNgOJIMTvcMjBUtYBNKcPr0LrPSf7NPAM= Received: by 10.78.122.11 with SMTP id u11mr1124301huc; Sat, 08 Jul 2006 08:05:01 -0700 (PDT) Received: by 10.78.116.20 with HTTP; Sat, 8 Jul 2006 08:05:00 -0700 (PDT) Message-ID: Date: Sat, 8 Jul 2006 11:05:00 -0400 From: "Jonathan Hayward http://JonathansCorner.com" To: caml-list@yquem.inria.fr Subject: "Hello web" please MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27447_17933859.1152371100863" X-j-chkmail-Score: MSGID : 44AFC99E.000 on nez-perce : j-chkmail score : X : 0/20 1 X-Miltered: at nez-perce with ID 44AFC99E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 foo:01 syntax:01 syntax:01 artwork:98 artwork:98 undefined:01 undefined:01 defined:02 defined:02 library:03 library:03 stories:95 stories:95 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=DNS_FROM_RFC_ABUSE,HTML_20_30, HTML_MESSAGE,RCVD_BY_IP autolearn=disabled version=3.0.3 ------=_Part_27447_17933859.1152371100863 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm trying to figure out how to use CamlGI with OCaml, and am for the moment working on hello world basics: for instance, how do I get ocaml to use a specific library? Could you send me a "Hello web" OCaml script that uses CamlGI and prints a webpage saying only "Yes", "No", "Other" or "Undefined" depending on whether the CGI variable "foo" has value 1, 0, some other defined value, or is undefined (never mind about multiple values)? If I see the syntax for that, I think I will be in a position to start tinkering. -- ++ Jonathan Hayward, jonathan.hayward@pobox.com ** To see an award-winning website with stories, essays, artwork, ** games, and a four-dimensional maze, why not visit my home page? ** All of this is waiting for you at http://JonathansCorner.com ** If you'd like a Google Mail (gmail.com) account, please tell me! ------=_Part_27447_17933859.1152371100863 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm trying to figure out how to use CamlGI with OCaml, and am for the moment working on hello world basics: for instance, how do I get ocaml to use a specific library?

Could you send me a "Hello web" OCaml script that uses CamlGI and prints a webpage saying only "Yes", "No", "Other" or "Undefined" depending on whether the CGI variable "foo" has value 1, 0, some other defined value, or is undefined (never mind about multiple values)?

If I see the syntax for that, I think I will be in a position to start tinkering.

--
++ Jonathan Hayward, jonathan.hayward@pobox.com
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

** If you'd like a Google Mail ( gmail.com) account, please tell me! ------=_Part_27447_17933859.1152371100863--