You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 775 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: David Scott
Version: 3.04 (both stable and cvs)
OS: Debian GNU/Linux testing on i386
Submission from: mozzarella.ulcc.wwwcache.ja.net (194.82.103.38)
With a simple SML file:
fun add x y = x + y
val result = add 1 2
<<<<
The camlp4 command
$ camlp4 pa_sml.cmo pr_o.cmo -- -verbose simple.ml
Generates the output:
let rec x (add, y) = x + y;;
let result = add 1 2;;
<<<<
With apparently the function name and the first argument switched around?
It works fine for functions with only one argument.
The text was updated successfully, but these errors were encountered:
On Fri, Jan 04, 2002 at 01:28:47PM +0100, djs55@cam.ac.uk wrote:
let rec x (add, y) = x + y;;
let result = add 1 2;;
Thanks for this report. This is fixed now: it has been committed in
the current OCaml CVS version.
With apparently the function name and the first argument switched
around?
Because it was supposed to treat infix operators: in the change I have
done, the case of infix operators does not work any more, but will be
fixed later.
Original bug ID: 775
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: David Scott
Version: 3.04 (both stable and cvs)
OS: Debian GNU/Linux testing on i386
Submission from: mozzarella.ulcc.wwwcache.ja.net (194.82.103.38)
With a simple SML file:
fun add x y = x + y
val result = add 1 2
<<<<
The camlp4 command
$ camlp4 pa_sml.cmo pr_o.cmo -- -verbose simple.ml
Generates the output:
let rec x (add, y) = x + y;;
let result = add 1 2;;
<<<<
With apparently the function name and the first argument switched around?
It works fine for functions with only one argument.
The text was updated successfully, but these errors were encountered: