Version française
Home     About     Download     Resources     Contact us    
Browse thread
Prefix operators in ocaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris Keane <Chris.Keane@c...>
Subject: Re: Prefix operators in ocaml
>>>>> On Thu, 21 Jan 1999, "EG" = Eduardo Gimenez wrote:

  EG> Which is the "prefix" name in Ocaml for the multiplication on
  EG> integers? The symbols (+), (/), etc. work fine for the other
  EG> arithmetic operations, but the symbol (*) does not.

I think you're probably just finding that the (* is being treated as the
start of a comment.  Put a space after the first bracket, thus: ( *), and
it should work as you require.

Chris.

------------------------------------------------------------------- ><> ---
    Hardware Compilation Group, Oxford University Computing Laboratory,
            Wolfson Building, Parks Road, Oxford, OX1 3QD, U.K.
    tel:  +44 (1865) (2)73865      e-mail:  Chris.Keane@comlab.ox.ac.uk
            http://www.comlab.ox.ac.uk/oucl/users/chris.keane/