You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have split my code up into a few files, and one of them contains struct definitions, how do I use them in a different file? I can't seem to get the compiler to import them at compile-time somehow.
The text was updated successfully, but these errors were encountered:
Types are intra-file only at the moment. Once it passes the JS-LLJS barrier, type information is lost, much like the problem in gradual typing. We could introduce some kind of import mechanism (open to suggestions here), or if you're feeling really 1970ish you can actually use CPP.
Ok, thanks. Yeah, I might try to figure out how to write a few header files that I can include across my project. Feel free to close this issue if this isn't in scope any time soon.
If I have split my code up into a few files, and one of them contains
struct
definitions, how do I use them in a different file? I can't seem to get the compiler to import them at compile-time somehow.The text was updated successfully, but these errors were encountered: