<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/11/2dd4c27a9d447df5f4c9f3a86f3af0f9"
  from="Falk Hueffner &lt;falk.hueffner@s...&gt;"
  author="Falk Hueffner"
  date="2003-11-17T15:55:53"
  subject="Re: [Caml-list] Limits on operator-style function names?"
  prev="2003/11/d9694c4eef770fa17289a4d313aa19c0"
  next="2003/11/77454b1dcd0bf70ae065fae653e1090a"
  prev-in-thread="2003/11/d9694c4eef770fa17289a4d313aa19c0"
  prev-thread="2003/11/bacc85928dbd73f2643743fc792e3b9b"
  next-thread="2003/11/496b39537f731229ef7c3864e45156c0"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Limits on operator-style function names?">
<msg 
  url="2003/11/d9694c4eef770fa17289a4d313aa19c0"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2003-11-17T15:42:24"
  subject="[Caml-list] Limits on operator-style function names?">
<msg 
  url="2003/11/2dd4c27a9d447df5f4c9f3a86f3af0f9"
  from="Falk Hueffner &lt;falk.hueffner@s...&gt;"
  author="Falk Hueffner"
  date="2003-11-17T15:55:53"
  subject="Re: [Caml-list] Limits on operator-style function names?">
</msg>
</msg>
</thread>

<contents>
Richard Jones &lt;rich@annexia.org&gt; writes:

&gt; I'm trying to find out what the limits are on the names of operator
&gt; functions (ie. val ( := ) : ...)
&gt; 
&gt; What are the rules for this?

see the manual, 6.1 Lexical conventions

infix-symbol  ::= (= | &lt; | &gt; | @ | ^ | | | &amp; | + | - | * | / | $ | %) { operator-char }
prefix-symbol ::= (! | ? | ~) { operator-char }
operator-char ::= ! | $ | % | &amp; | * | + | - | . | / | : | &lt; | = | &gt; | ? | @ | ^ | | | ~ 

i.e., the first char determines the arity, and then you can freely
append random letters.

-- 
	Falk

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

