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

any plans to allow functions to return structures / objects ? #11

Open
Lincoln-Hannah opened this issue Jul 15, 2022 · 1 comment
Open

Comments

@Lincoln-Hannah
Copy link

A common setup with Excel finance libraries is to have a cell hold an object output of a calculation.

Example:
An excel range (A10:B30) stores a yield curve par rates.
A1 points to this range and stores a Julia object of the bootstrapped curve.
Trade valuations then just point to A1 to value off the curve.

(Fantastic Package btw :)

@Lincoln-Hannah
Copy link
Author

Lincoln-Hannah commented Jul 19, 2022

An easy way to get similar functionality would be to combine the JuliaCall and JuliaSetVar functions.
So the function result (e.g. a structure) is saved as a global variable instead of returned to the spreadsheet.
Other Excel calls could reference the GV by name.

JuliaCalltoGlobalVar( VariableName, JuliaFunction, args... )

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

No branches or pull requests

1 participant