Skip to content

Native blocks not working? #82

Answered by pfusik
crmorello asked this question in Q&A
Mar 29, 2023 · 5 comments · 2 replies
Discussion options

You must be logged in to vote

There were two issues:

  • Top-level natives not emitted for Swift (and Python).
  • The parser required the contents to be valid Ć tokens. The "@" character is not a valid Ć token, hence the error.

Fixed both. The latter with a new syntax:

native "@objc"

"git pull" cito and rebuild.

Top-level natives are meant for things such as imports and helper routines. That's why they are emitted at the top of the target file. This won't work if you have many classes.

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by crmorello
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pfusik
Comment options

@crmorello
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants