Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scala 3 API & project cross compilation #48

Merged
merged 10 commits into from
Jul 23, 2021

Conversation

pomadchin
Copy link
Member

@pomadchin pomadchin commented Jul 22, 2021

  • Problem: the lack of macro annotations in Scala 3
  • Solution:

We can still define a macro, which would be possible to use this way ~

class NativeLoader(nativeLibrary: String):
  inline def load = ${ nativeLoaderMacro.impl('nativeLibrary) }
  load

object Adder extends NativeLoader("adder0")

It would require to have macro project as a dependency though.

Closes #45

@pomadchin pomadchin force-pushed the feature/cross-scala-3 branch 4 times, most recently from 38b4e61 to 0c3626f Compare July 23, 2021 01:43
@pomadchin pomadchin changed the title [WIP] Scala 3 API & project cross compilation Scala 3 API & project cross compilation Jul 23, 2021
@pomadchin pomadchin force-pushed the feature/cross-scala-3 branch 2 times, most recently from f7954aa to 6431079 Compare July 23, 2021 04:54
@pomadchin pomadchin merged commit cf78434 into sbt:main Jul 23, 2021
@pomadchin pomadchin deleted the feature/cross-scala-3 branch July 23, 2021 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scala 3 support
1 participant