Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#trace on mutually-recurcive function rejected #3554

Closed
vicuna opened this issue Aug 22, 2002 · 1 comment
Closed

#trace on mutually-recurcive function rejected #3554

vicuna opened this issue Aug 22, 2002 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 22, 2002

Original bug ID: 1346
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Yutaka OIWA
Version: 3.06
OS: Solaris, Linux
Submission from: sy128-120.svc.itscom.jp (210.128.128.120)

Starting from OCaml 3.05, "#trace"-ing function which is
defined in the second or later clause of "let rec" is
rejected with message "(something) is not a function".

Example session:

% env OCAMLLIB=/usr/local/lib/ocaml-3.04 /usr/local/lib/ocaml-3.04/bin/ocamlrun
/usr/local/lib/ocaml-3.04/bin/ocaml
Objective Caml version 3.04

let rec f x = g 0 and g x = f 0;;

val f : int -> 'a =
val g : int -> 'a =

#trace g;;

g is now traced.

^D

% /usr/local/bin/ocaml
Objective Caml version 3.06

let rec f x = g 0 and g x = f 0;;

val f : int -> 'a =
val g : int -> 'a =

#trace g;;

g is not a function.

^D


@vicuna
Copy link
Author

vicuna commented Nov 18, 2002

Comment author: administrator

Fixed 2002-11-18 by XL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant