Skip to content

Implement basic class reflection#404

Open
tonybaloney wants to merge 3 commits intomainfrom
classy
Open

Implement basic class reflection#404
tonybaloney wants to merge 3 commits intomainfrom
classy

Conversation

@tonybaloney
Copy link
Copy Markdown
Owner

@tonybaloney tonybaloney commented Apr 4, 2025

This is stage 1 of #397

Basic attribute reflection based on names with the ability to override the source name with an attribute.

The method implementation example is ugly. After this PR, I'm going to work on a method attribute using partials and source generators (similar to how LoadLibrary works). This will make it pretty simple to implement a basic set of functions.

This also doesn't address the magic methods and operator overloading, although we could demonstate those as strongly typed ones using the Self attribute in the tests.

@tonybaloney
Copy link
Copy Markdown
Owner Author

@atifaziz @gukoff thoughts on this implementation?

@atifaziz
Copy link
Copy Markdown
Collaborator

See #584 for an alternative design.

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

Successfully merging this pull request may close these issues.

2 participants