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

Improve gac to support calls to custom function objects #3423

Merged
merged 3 commits into from
Apr 27, 2019

Conversation

fingolfin
Copy link
Member

Previously, gac only supported functions calls using the f() syntax for internal functions, i.e., objects of type T_FUNCTION. But GAP allows custom functions, meaning that one can install methods that allow "calling" almost arbitrary objects.

This commit adds this functionality to gac, too, so that it matches the interpreter and executor.

This PR contains PR #3419.

@fingolfin fingolfin added kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements topic: kernel topic: gac GAP to C compiler release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes labels Apr 24, 2019
Previously, gac only supported functions calls using the `f()` syntax
for internal functions, i.e., objects of type T_FUNCTION. But GAP
allows custom functions, meaning that one can install methods that allow
"calling" almost arbitrary objects.

This commit adds this functionality to gac, too, so that it matches the
interpreter and executor.
@codecov
Copy link

codecov bot commented Apr 24, 2019

Codecov Report

Merging #3423 into master will decrease coverage by 0.26%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3423      +/-   ##
==========================================
- Coverage   85.42%   85.16%   -0.27%     
==========================================
  Files         697      697              
  Lines      342456   343878    +1422     
==========================================
+ Hits       292547   292860     +313     
- Misses      49909    51018    +1109
Impacted Files Coverage Δ
src/hpc/c_oper1.c 85.69% <ø> (-7.44%) ⬇️
src/c_type1.c 78.65% <ø> (-8.43%) ⬇️
src/hpc/c_type1.c 78.14% <ø> (-8.72%) ⬇️
src/c_oper1.c 85.9% <ø> (-7.48%) ⬇️
src/compiler.c 89.49% <100%> (+0.24%) ⬆️
src/compiled.h 100% <100%> (ø)
lib/memusage.gd 87.5% <0%> (-12.5%) ⬇️
lib/helpbase.gi 53.83% <0%> (-12.42%) ⬇️
lib/helpview.gi 37.89% <0%> (-9.69%) ⬇️
... and 46 more

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 85.001% when pulling d58e31e on fingolfin:mh/gac-callfunc into 1c3584c on gap-system:master.

@ChrisJefferson ChrisJefferson merged commit 2b52df5 into gap-system:master Apr 27, 2019
@fingolfin fingolfin deleted the mh/gac-callfunc branch April 27, 2019 18:05
@fingolfin fingolfin changed the title gac: fix calling non-standard functions Fix gac to correctly support calls to custom function objects Aug 22, 2019
@fingolfin fingolfin changed the title Fix gac to correctly support calls to custom function objects Improve gac to support calls to custom function objects Aug 22, 2019
@fingolfin fingolfin added release notes: added PRs introducing changes that have since been mentioned in the release notes and removed release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes labels Aug 22, 2019
@olexandr-konovalov olexandr-konovalov added this to the GAP 4.11.0 milestone Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements release notes: added PRs introducing changes that have since been mentioned in the release notes topic: gac GAP to C compiler topic: kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants