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

Bug in toplevel value printer #2961

Closed
vicuna opened this issue Sep 15, 2001 · 2 comments
Closed

Bug in toplevel value printer #2961

vicuna opened this issue Sep 15, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 15, 2001

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

Bug description

Full_Name: Patrick Doane
Version: 3.02
OS: FreeBSD
Submission from: cs6669225-6.austin.rr.com (66.69.225.6)

The toplevel printer can produce values which produce syntax errors
when used literally. For record values, a space should be placed around the '='
to avoid this problem.

type t = { x : int };;

type t = { x : int; }

let y = {x = -1};;

val y : t = {x=-1}

{x=-1};;

Characters 2-4:
Syntax error

@vicuna
Copy link
Author

vicuna commented Sep 15, 2001

Comment author: administrator

Hi,

On Sat, Sep 15, 2001 at 04:53:02PM +0200, patrick@watson.org wrote:

let y = {x = -1};;

val y : t = {x=-1}

{x=-1};;

Characters 2-4:
Syntax error

Ok, it's fixed.

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

@vicuna
Copy link
Author

vicuna commented Sep 24, 2001

Comment author: administrator

Fixed 2001-09-15 by DdR

@vicuna vicuna closed this as completed Sep 24, 2001
@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