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

JuliaFunction: set name and "location" of the function #182

Merged
merged 1 commit into from
Nov 29, 2018

Conversation

fingolfin
Copy link
Member

The latter means that using Display on a GAP function produced via
JuliaFunction will at least give some indication about where the function
comes from. It's not perfect, but certainly better than nothing (= what we
currently get).

The latter means that using `Display` on a GAP function produced via
`JuliaFunction` will at least give some indication about where the function
comes from. It's not perfect, but certainly better than nothing (= what we
currently get).
@fingolfin fingolfin requested a review from sebasguts November 29, 2018 12:54
"parse"
gap> Display(Julia.Base.parse);
function ( arg... )
<<kernel code>> from Julia:parse
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The <<kernel code>> from bit is fixed by GAP (at least currently), and so is the "FOO:BAR" format for the final part. Nice would of course be something like: <<Julia function Base.parse>>. Alas, I also don't really know how to produce Base.parse instead of parse. Perhaps it's as simply as checking for the parent module, getting its name, and prepending it (with a dot), and then repeating this until the top level is reached? Alas, we can figure that out later.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say it is fine that way for now. If people start to complain we can still fix it. A sensible top-level would be Main I guess. Or maybe Top?

@codecov
Copy link

codecov bot commented Nov 29, 2018

Codecov Report

Merging #182 into master will increase coverage by 0.1%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master     #182     +/-   ##
=========================================
+ Coverage   72.34%   72.45%   +0.1%     
=========================================
  Files          43       43             
  Lines        2311     2320      +9     
=========================================
+ Hits         1672     1681      +9     
  Misses        639      639
Impacted Files Coverage Δ
JuliaInterface/src/calls.c 99.14% <100%> (+0.06%) ⬆️
JuliaInterface/src/calls.h 100% <0%> (ø) ⬆️

@sebasguts sebasguts merged commit 7181fa6 into oscar-system:master Nov 29, 2018
@fingolfin fingolfin deleted the mh/func-name branch November 30, 2018 10:27
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