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

[Proposal] Simple Class Inheritance #54

Open
gregsn opened this issue Feb 3, 2022 · 0 comments
Open

[Proposal] Simple Class Inheritance #54

gregsn opened this issue Feb 3, 2022 · 0 comments
Labels

Comments

@gregsn
Copy link
Member

gregsn commented Feb 3, 2022

Quest #11

When making libraries available for VL you sometimes need to inherit from a base class. In order to do so can we just start with a reduced feature set like so:

  • ability to list a class in the supertypes
  • ability to overwrite virtual or abstract methods / operations by just adding them to the list of operations (they then grab the signature of the base class regarding their inputs and outputs)
  • ability to call base.Foo

we skip:

  • sealing classes
  • defining abstract classes
  • defining virtual or abstract operations
  • defining virtual or abstract properties
  • protected and private keywords
  • new keyword
  • overriding a certain overload with a certain signature. Can we assume that the name of the operation is enough to find the method that shall be overridden?

open questions:

  • how to treat virtual or abstract properties? We don't have actual .Net properties. We only have setters and getters = patterns on how to name operations and we have fields.
  • how does that relate to the proxy system? Can we disable it for those types if it becomes an obstacle?
@gregsn gregsn added the proposal label Feb 3, 2022
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