Browse thread
(int * int) <> int*int ?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Vincent Balat <Vincent.Balat@p...> |
| Subject: | Re: [Caml-list] (int * int) <> int*int ? |
To add more confusion on the debate, look at this example:
;-)
Objective Caml version 3.09.1
# type t = A of int * int;;
type t = A of int * int
# A 1 2;;
Syntax error
# `A 1 2;;
Syntax error
# #load "camlp4o.cma";;
Camlp4 Parsing version 3.09.1
# A 1 2;;
Toplevel input:
# A 1 2;;
^^^^^
Parse error: currified constructor
# `A 1 2;;
- : [> `A of int * int ] = `A (1, 2) (* !!!!! *)
(This is _not_ the revised syntax, but a strange bug/feature of camlp4o ...)