You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Cross-post from https://stackoverflow.com/questions/79242253/how-to-use-import-and-return-a-value-in-the-same-eval
I need to get the interpreted result of a simple statement that relies on an import:
In Yaegi, I could
and obtain the result vom
v
.I cannot however do this in a single eval:
does not compile in Yaegi and
does not return a result. Same with wrapping the assignment in a
main()
function.How can I obtain the result in a single
Eval()
?Beta Was this translation helpful? Give feedback.
All reactions