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

is this a bug? (in CamlP4 or revised grammar) #3164

Closed
vicuna opened this issue Jan 18, 2002 · 2 comments
Closed

is this a bug? (in CamlP4 or revised grammar) #3164

vicuna opened this issue Jan 18, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 18, 2002

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

Bug description

Full_Name: Lukasz Lew
Version: 3.04
OS: Win2k
Submission from: 54-dzi-3.acn.waw.pl (62.121.66.54)

1.When we convert this

let foo =
();
let x = 1 in
x
;;

with command
camlp4 pa_o.cmo pr_r.cmo file.ml
we get:

value foo =
do {
();
let x = 1;
x
};

I'm not sure but i think that "let x = 1;" is not really OK

@vicuna
Copy link
Author

vicuna commented Jan 18, 2002

Comment author: administrator

Hi,

On Fri, Jan 18, 2002 at 09:29:24PM +0100, l.lew@zodiac.mimuw.edu.pl wrote:

value foo =
do {
();
let x = 1;
x
};

I'm not sure but i think that "let x = 1;" is not really OK

Yes, it is ok. In sequences, the syntax of sequences can be
let ... in or
let ... ;

Both ar usable. Their scope apply up to the end of the sequence.

--
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/

@vicuna
Copy link
Author

vicuna commented Feb 11, 2002

Comment author: administrator

Seems OK.

@vicuna vicuna closed this as completed Feb 11, 2002
@vicuna vicuna added the bug label Mar 19, 2019
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