I’m sorry
For over 2 months, scratcher has had an “export” keyword, which was fully unused, until today:
I implemented the export keyword on functions, which allows for code written in plain scratch to interact with scratcher code:
export warp void myFunction() { ... }
Export requires that your function arguments are all primitives and that the return is also a primitive, but other than that, it does not change anything, just exposes the function cleanly to regular scratch code.
However, scratcher type checking still applies, so if the native scratch code passes in a string to a float argument, it will still cause a panic
Even when you have obfuscation enabled, exports will stay and let native scratch use it with its original name
Comments 2
you can do scratch here?
Read description
Sign in to join the conversation.