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

Class definitions take keyword arguments #8128

Closed
vicuna opened this issue May 1, 2003 · 0 comments
Closed

Class definitions take keyword arguments #8128

vicuna opened this issue May 1, 2003 · 0 comments
Labels

Comments

@vicuna
Copy link

vicuna commented May 1, 2003

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

Bug description

The grammar for class definitions says this is invalid, but OCAML
takes it and I use it routinely:

class foo ~bar = object end;;

I think the word "pattern" should be changed to "argument" in this
production for class-binding in Section 6.9.3 of the document:

class_binding ::=
[virtual] [[type-parameters]] class_name {pattern} [:class-type] =
class-expr

--
Tim Freeman tim@fungible.com
Which is worse: ignorance or apathy? Who knows? Who cares?
GPG public key fingerprint ECDF 46F8 3B80 BB9E 575D 7180 76DF FE00 34B1 5C78

@vicuna vicuna closed this as completed May 5, 2003
@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