caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe Raffalli <christophe.raffalli@univ-savoie.fr>
To: Richard Jones <rich@annexia.org>, OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] Unboxed float tuples
Date: Sun, 08 Nov 2009 21:58:49 +0100	[thread overview]
Message-ID: <4AF73109.4070207@univ-savoie.fr> (raw)
In-Reply-To: <20091108200951.GA30792@annexia.org>

[-- Attachment #1: Type: text/plain, Size: 637 bytes --]


>> t to sacrifice the unboxed representation for that.
>>     
>
> I guess others have pointed out why this isn't so easy.
>
> How about a syntax extension instead to turn a vector (| a, b, c |)
> into { v0 = a; v1 = b; v2 = c }, and a standard type to solve the
> module communication problem?  I'm not sure if camlp4 will let you
> define bracket lexemes like that.
>
>   
I use (^ ^) and {^ ^} as bracket for my bindlib library.

The only defect is that you have to add spaces :

^)^))) should be written ^) ^) ))

You can look at the code of bindlib for more info ...

Cheers,
Christophe
> Rich.
>
>   



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

  reply	other threads:[~2009-11-08 20:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-08 16:01 Daniel Bünzli
2009-11-08 16:46 ` [Caml-list] " Jon Harrop
2009-11-08 17:29 ` Martin Jambon
2009-11-08 19:39 ` Brian Hurt
2009-11-08 20:36   ` Jon Harrop
2009-11-08 20:09 ` Richard Jones
2009-11-08 20:58   ` Christophe Raffalli [this message]
2009-11-08 21:25     ` Lukasz Stafiniak

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=4AF73109.4070207@univ-savoie.fr \
    --to=christophe.raffalli@univ-savoie.fr \
    --cc=caml-list@inria.fr \
    --cc=rich@annexia.org \
    /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;
as well as URLs for NNTP newsgroup(s).