-
Notifications
You must be signed in to change notification settings - Fork 40
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
Declare external functions #128
Comments
Hi, thanks for reporting this! An Doing like you did in the example wouldn't work though -- However, there's workarounds for you can use to get an external function in the meantime. Right now, the way to declare a function that's defined externally is to use a
You can check the However, it would be nice to support something like I'll leave this open because I think this would be a good addition to the language. There's also potentially some stuff with function values vs pointers that could be better clarified. This would definitely benefit from better docs (pending a merge of the docs site that lhsazevedo had worked on, to start with). I've been less active on Wiz maintenance lately due to dayjob work, but trying to get back into the swing of things here. I've been working on a small refactor that will hopefully aid in making new feature development and fixes easier. It's been taking longer than expected due to only managing a few hours each week on sideprojects, but I'm trying to get this balanced a bit more. And I would like to get to these improvements at some point -- both better docs and extern funcs. Anyway hope that this reply helps! And I hope that I can get to this task eventually. |
I tried to define some functions in ROM like this:
And then:
But then I get a "expression is not callable" error. Am I missing a better way to do this? I tried var/const, func vs func(), etc.
The text was updated successfully, but these errors were encountered: