Skip to content
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

Importing file with main function #648

Open
Akuli opened this issue Jan 19, 2025 · 1 comment
Open

Importing file with main function #648

Akuli opened this issue Jan 19, 2025 · 1 comment
Labels

Comments

@Akuli
Copy link
Owner

Akuli commented Jan 19, 2025

Because the main function is not @public, this should now be possible, but there is an error message that prevents it.

Why this seems like a good idea to me: In a large project, you could have foo.jou, bar.jou and main.jou. The main() function of foo.jou could be used to experiment with a feature foo without interfering with the actual main function in main.jou.

@Akuli
Copy link
Owner Author

Akuli commented Jan 19, 2025

Or maybe main should be @public...

@Akuli Akuli added the feature label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant