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

Add @gapproperty #680

Closed
fingolfin opened this issue Aug 18, 2021 · 0 comments
Closed

Add @gapproperty #680

fingolfin opened this issue Aug 18, 2021 · 0 comments

Comments

@fingolfin
Copy link
Member

This would be identical to @gapattribute except it would add a type assertion to the return value of the getter function, so that Julia code calling the wrapper could be type stable.

In other words, this:

@gapproperty isperfect(G::GAPGroup) = GAP.Globals.IsPerfectGroup(G.X)

would be equivalent to this:

@gapattribute isperfect(G::GAPGroup) = GAP.Globals.IsPerfectGroup(G.X)::Bool
@fingolfin fingolfin closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2024
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 a pull request may close this issue.

1 participant