scicloj / wolframite

An interface between Clojure and Wolfram Language (the language of Mathematica)
https://scicloj.github.io/wolframite/
Mozilla Public License 2.0
56 stars 2 forks source link

Fix #76 Incorrect conversion of Integer 5 to Expr #85

Closed holyjak closed 4 months ago

holyjak commented 4 months ago

Issue: (wl/eval (wl/eval (w/-> 'x 5))) failed with "IllegalArgumentException: No matching ctor found for class com.wolfram.jlink.Expr" b/c at some point we tried (Expr. 5) where 5 was an Integer.

Fix: Be explicit about what types we support + manually un-box supported number types.