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

Define class extension rules #7

Open
dpkristensen opened this issue Aug 4, 2018 · 2 comments
Open

Define class extension rules #7

dpkristensen opened this issue Aug 4, 2018 · 2 comments

Comments

@dpkristensen
Copy link
Owner

Need to define how classes extend others

@dpkristensen
Copy link
Owner Author

dpkristensen commented Aug 4, 2018

Thinking something like the following:

Extend a class by attributes on the base class:

new-class := <word>
base-class := <class-def>('.extend('<new-class>','<rule>')')...

Extend from concrete class(es):

extended-class := <class-def>('.base('<old-class>','<rule>')')...

Note: this is not inheritance! The whole data block is re-interpreted.

Should Inheritance be allowed?

@dpkristensen
Copy link
Owner Author

Thinking inheritance will be neccesary. Maybe extend is for inheritance and replace for reinterpretation. Probably need to prototype for parsing requirements. In particular, are parsed fields queued until rules have been determined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant