Um... In other words, I can run my old code using julia 0.3  but if I want
to add new things in julia 0.4 syntax, Compat will translate it so julia
0.3 can run it?

Nothing to convince julia 0.4 to look up & use an older graphics package?
(That's really the issue here... The graphics for this were a trivial
hassle I thought I'd finished, & now I'm needing to excavate & reconstruct
that in order to use them.)

On Fri, Oct 16, 2015 at 8:41 PM, Matt Bauman <[email protected]> wrote:

> On Friday, October 16, 2015 at 11:29:40 PM UTC-4, Forrest Curo wrote:
>>
>> Okay, this might be a good time to explain that 'Compat' package.
>> Evidently I do have it, because I can't Pkg.add it... How does this work?
>>
>
> See the readme here: https://github.com/JuliaLang/Compat.jl
>
> The short version is that it allows you to write code using the new 0.4
> names and syntaxes, while still providing compatibility for 0.3.  For the
> most part, you're able to update your code to the new 0.4 names and simply
> saying `using Compat` at the top of your file will make things work on
> 0.3.  There are some syntaxes, however, whose new form is an error on 0.3.
> In those cases, you can use the `@compat` macro.  For example, a function
> definition like `f(x::Union(Int,Float64)) = 2` would become 
> `f(x::@compat(Union{Int,Float64}))
> = 2`.
>

Reply via email to