caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David MENTRE <david.mentre@gmail.com>
To: Alessandro Baretta <a.baretta@barettadeit.com>
Cc: Ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] Associativity of new operators
Date: Fri, 20 Jan 2006 17:18:04 +0100	[thread overview]
Message-ID: <3d13dcfc0601200818o5185cf96v@mail.gmail.com> (raw)
In-Reply-To: <43D10AA1.8050102@barettadeit.com>

2006/1/20, Alessandro Baretta <a.baretta@barettadeit.com>:
> The above toplevel session shows that the associativity of newly defined
> operators depends on the name of the operator itself. Is there a general rule to
> determine the associativity of the operator?

Yep, the first letter of the operator determines its associativity.

See http://caml.inria.fr/pub/docs/manual-ocaml/manual015.html
"""
The table below shows the relative precedences and associativity of
operators and non-closed constructions. [...] For infix and prefix
symbols, we write "*..." to mean "any symbol starting with *".
"""

Best wishes,
d.


  parent reply	other threads:[~2006-01-20 16:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-20 16:06 Alessandro Baretta
2006-01-20 16:13 ` [Caml-list] " William D. Neumann
2006-01-20 16:17 ` Julien Signoles
2006-01-20 16:37   ` Alessandro Baretta
2006-01-20 16:18 ` Eric Cooper
2006-01-20 16:18 ` David MENTRE [this message]
2006-01-20 16:45 ` Richard Jones

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=3d13dcfc0601200818o5185cf96v@mail.gmail.com \
    --to=david.mentre@gmail.com \
    --cc=a.baretta@barettadeit.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;
as well as URLs for NNTP newsgroup(s).