JuliaInterop / ObjectiveC.jl

Objective-C embedded in Julia
Other
39 stars 10 forks source link

add Project.toml and update to Julia 1.5 #10

Closed blandinw closed 3 years ago

blandinw commented 3 years ago

Almost works, still some macro hygiene issues when using the @class mutable struct macro

I'm brand new to Julia and wanted to write a quick menu bar app to compare it with my Rust implementation. I stumbled upon this project which looks great but unfortunately did not compile on Julia 1.5.

After browsing some forums to understand what changed in 1.0+, I made the changes necessary for the test to pass. This PR was a good initiation to the language for me, hopefully it has value for you too.

blandinw commented 3 years ago

I'm stuck on some macro hygiene issues when declaring objc methods using the @class macro. Apparently, esc() and hygiene have changed quite a bit since pre-1.0 and I'm seeing active a lot of confusion around it. I won't have time to look at it more closely, but the rest of the PR works, feel free to reuse it.