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

Binary number lexing #4022

Closed
vicuna opened this issue May 13, 2006 · 2 comments
Closed

Binary number lexing #4022

vicuna opened this issue May 13, 2006 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented May 13, 2006

Original bug ID: 4022
Reporter: philippe_wang
Status: closed (set by @xavierleroy on 2006-06-13T09:38:47Z)
Resolution: not a bug
Priority: normal
Severity: minor
Version: 3.09.2
Category: ~DO NOT USE (was: OCaml general)
Monitored by: philippe_wang

Bug description

I've just seen that I can write :

if 0b0=0b0then 1 else 0

without any space between "0b0" and "then" !

Could that be in purpose ?! I hope not. :-)

@vicuna
Copy link
Author

vicuna commented May 13, 2006

Comment author: philippe_wang

How can I delete a report ?! ...

I've seen that it can be done with any numbers... (any handled base)

So it must be on purpose...

Still I believe it's not really "clean" ...

@vicuna
Copy link
Author

vicuna commented Jun 13, 2006

Comment author: @xavierleroy

Nothing to do with binary literals specifically, e.g.
if 0=0then 1else 0 is OK as well. This is a consequence of the "longest match" convention for the lexer, and there is really no reason to change it.

@vicuna vicuna closed this as completed Jun 13, 2006
@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