JuliaInterop / JuliaInterop/MathLink.jl
Multiple returns
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 146
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
In a Mathematica notebook, every line that doesn't end with ; will be displayed/ returned.
This is handled differently in MathLink where only one return value is possible.
MWE:
W```
a = 1;
b = 2
c = 3
``` |> weval
┌ Warning: Set::write: Tag Times in 2 c is Protected.
└ @ MathLink ~/.julia/packages/MathLink/6K9ao/src/eval.jl:16
3
I would expect to get the tuple (2, 3) back.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the notebook example and inspect src/eval.jl:16, where the reported warning occurs. Trace how multiple evaluated expressions are collected and compare that behavior with the expected (2, 3) result; done means the example returns both values without the shown warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100