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

remove using namepace #14

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

KarthikKaravatt
Copy link

This removes the use of usingnamespace #7 but the import is done a little bit differently as seen in the updated readme. This seems like the simplest way to fix this, in terms of changes made.

This is done because usingnamesapce is going to be removed soon and also without it we can use incremental compilation.

@OndraVoves
Copy link
Contributor

It might be better to move the code from zmath.zig directly to main.zig. It will be without usingnamespace and at the same time backwards compatible.

Copy link
Member

@hazeycode hazeycode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As @OndraVoves pointed out we can just move the contents of zmath.zig to the root module file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants