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

alias du type float #2366

Closed
vicuna opened this issue Feb 8, 2000 · 1 comment
Closed

alias du type float #2366

vicuna opened this issue Feb 8, 2000 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 8, 2000

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

Bug description

Full_Name: Pascal Brisset
Version: 2.99
OS:
Submission from: estephe.inria.fr (128.93.11.95)
Submitted by: xleroy

[Xavier Leroy: bug report submitted 2000-01-03, fixed in 3.00,
put here for the record]

Un petit problème pour le code suivant

---8<------------------------------------------
module B = struct
type t = float
type p = { x : t }
let f = { x = 1000. }
end

module type S = sig
type t = float
type p = { x : float }
val f : p
end

module BS = (B:S)

let _ =
Printf.printf "%f %f\n" B.f.B.x BS.f.BS.x;;
---8<------------------------------------------

On obtient:

sepia[123]% ./a.out
1000.000000 0.000000

C'est apparemment l'erreur dans la déclaration du type p (float pour
t) dans la signature qui est responsable. Une histoire de flottant
boxé/non boxé dans la structure ?

--Pascal

@vicuna
Copy link
Author

vicuna commented Feb 8, 2000

Comment author: administrator

Fixed in 3.00

@vicuna vicuna closed this as completed Feb 8, 2000
@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