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

[Refactor] [ir] Modifying TypeFactory class functions to be of const type #6223

Closed
wants to merge 6 commits into from

Conversation

matthewd28
Copy link

Issue: #5167

Brief Summary

According to the issue #5167, const Type * should be used everywhere because types shouldn't be modified after created.

Modifying TypeFactory class functions to be of const type.
Issue link: taichi-dev#5167
@CLAassistant
Copy link

CLAassistant commented Oct 2, 2022

CLA assistant check
All committers have signed the CLA.

@netlify
Copy link

netlify bot commented Oct 2, 2022

Deploy Preview for docsite-preview canceled.

Name Link
🔨 Latest commit d65cde5
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/6339d31e23fd170008f12fa3

@strongoier
Copy link
Contributor

Hi @matthewd28. Thanks for contributing & welcome to the Taichi community!

Turning Type * into const Type * will affect all usages of the return value. You need to take care of all of them instead of only those inside type_factory.h. You can follow https://docs.taichi-lang.org/docs/dev_install to build taichi locally and see if the compilation succeeds.

@ailzhang
Copy link
Contributor

Hey @matthewd28 , are you still working on this PR?

@bobcao3
Copy link
Collaborator

bobcao3 commented Jun 23, 2024

Closing stale PR

@bobcao3 bobcao3 closed this Jun 23, 2024
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.

5 participants