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

Feature request - recursive definition of object values #3389

Closed
vicuna opened this issue Dec 21, 2004 · 1 comment
Closed

Feature request - recursive definition of object values #3389

vicuna opened this issue Dec 21, 2004 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Dec 21, 2004

Original bug ID: 3389
Reporter: administrator
Status: closed
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Ethan Aubin
Version: 3.08.1
OS: cygwin
Submission from: foster-miller.com (64.119.130.179)

Hi, I would like to use let rec for the recursive definition of object values.
Something along the lines of:

class number_stream (first : int) (next : number_stream) = object
val v = first
val next = next
end

let rec ones = new number_stream 1 ones
in ones;;

Thanks -- ethan.aubin@pobox.com

@vicuna
Copy link
Author

vicuna commented Jan 28, 2005

Comment author: administrator

see #3394

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

No branches or pull requests

1 participant