JunoLab / Media.jl

Julia Display System
Other
5 stars 11 forks source link

work around `error in type inference due to #265` #8

Closed JeffBezanson closed 8 years ago

JeffBezanson commented 8 years ago

This error has been happening when trying to display almost anything non-trivial. It's due to the addition of methods to media() at run time, invalidating assumptions made by type inference. This change works around the problem by hiding the type of the result (so that inference doesn't assume anything).

MikeInnes commented 8 years ago

Awesome, thanks! I'd seen this for Gadfly but figured it was an issue there, and probably wouldn't have figured out how to fix it even if I'd realised.