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

Files beginning with numbers aren't handled elegantly by 3.07+2 #3021

Closed
vicuna opened this issue Jul 30, 2004 · 2 comments
Closed

Files beginning with numbers aren't handled elegantly by 3.07+2 #3021

vicuna opened this issue Jul 30, 2004 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 30, 2004

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

Bug description

Trying to compile a file "1.ml" containing "let _ = ()" with ocamlopt 3.07+2
gives:

$ ocamlopt 1.ml -o 1
/tmp/camlasm75416f.s: Assembler messages:
/tmp/camlasm75416f.s:2: Warning: rest of line ignored; first ignored character
is `1'
...

It may well have been fixed already but I've got a dodgy net connection ATM
and can't check.

Cheers,
Jon.

@vicuna
Copy link
Author

vicuna commented Aug 6, 2004

Comment author: administrator

Trying to compile a file "1.ml" containing "let _ = ()" with
ocamlopt 3.07+2 gives:

$ ocamlopt 1.ml -o 1
/tmp/camlasm75416f.s: Assembler messages:
/tmp/camlasm75416f.s:2: Warning: rest of line ignored; first ignored
character is `1'

It happens to work in 3.08 because ocamlopt now prefixes all generated
identifiers. Note however that if you want to be able to refer to
definitions from a file using "open" or the dot notation, the name of
the file has better be a valid Caml identifier followed by ".ml".

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Aug 6, 2004

Comment author: administrator

Works in 3.08 due to prefixing of generated identifiers.

@vicuna vicuna closed this as completed Aug 6, 2004
@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