-
-
Notifications
You must be signed in to change notification settings - Fork 673
Importing functions from other files #21
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
Comments
Exports and imports should just work, that is if you are using current master. |
Hello! Thanks for the super quick reply! So I pulled the latest mater on January, 23rd, has it changed since then? and if it is not too much to ask, could you post a quick code example? And again, thanks for all the hard work! |
It's constantly changing, but I haven't touched imports/exports recently.
There's this test for example. |
Oh that's perfect thanks! Do you mind if I contribute a simple project example under the examples displaying exports and imports? Maybe something like a small Fibonacci sequence or something. Also on the topic of that, I know Maps are incomplete, but if I were to expose them like sets in assembly definitions could I use the functionality they currently have? And you solved this issue, I'll close it after your next reply, thank you for your time! |
Not sure, I am trying to provide somewhat meaningful examples and exports and imports are already mentioned in the showcase test.
You can try, but be warned that these aren't real set/map implementations, just untested fillers using arrays under the hood. Also note that string keys won't work yet because operator overloads aren't evaluated yet. |
Ahhh makes sense, cool, thank you! I'll be sure to look through the tests if I need to figure something out. If I come up with another contribution idea, I'll make an issue to discuss. Again, thanks for your help! Closing this! |
…nput Test string array input
* Optimizations + update dependencies * update yarn.lock as well * more * improve dirName * more Co-authored-by: Frank Denis <[email protected]>
* 'master' of github.com:jedisct1/wasa: Fixed the memory leak for Time.sleep (AssemblyScript#33) Improve Descriptor (AssemblyScript#25) Bump assemblyscript from 0.9.2 to 0.9.4 (AssemblyScript#27) Deps Optimizations + update dependencies (AssemblyScript#21) Bump @as-pect/cli from 2.7.0 to 2.8.1 (AssemblyScript#23) Bump assemblyscript from 0.9.1 to 0.9.2 (AssemblyScript#24) Fix Date.now to return milliseconds instead of microseconds (AssemblyScript#19) Bump assemblyscript from 0.9.0 to 0.9.1 (AssemblyScript#17)
Uh oh!
There was an error while loading. Please reload this page.
Hello! I'm currently working on a large project (for fun) in Assembly script.
And I couldn't quite figure out how to split out my code into multiple files, to be imported/exported in an index.ts.
Here is a link to my assemblyscript files in my repo
I know the project is still very new, and if it is not implemented yet, no worries! Thanks for making this awesome project!
P.S I'm hoping I can find time to contribute, because I'm really looking forward to using this in more projects in the future 😄
The text was updated successfully, but these errors were encountered: