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

About pointers #25

Open
ice1000 opened this issue Sep 7, 2017 · 4 comments
Open

About pointers #25

ice1000 opened this issue Sep 7, 2017 · 4 comments

Comments

@ice1000
Copy link
Contributor

ice1000 commented Sep 7, 2017

指针是肯定必须成为AST的一部分的,起码后端得知道啥是指针。然后才能调用各种C语言函数。

我并不认为这个东西是必须暴露的(我其实更希望它被包起来),但是它不可避免啊(puts要的可不是i8的数组)。

@ice1000
Copy link
Contributor Author

ice1000 commented Sep 9, 2017

我现在才意识到想要make 字符串 鬼特 again是多么困难的事情

@AkimotoAkari
Copy link
Collaborator

emmmm调用C函数的话,不用暴露指针给程序吧- -底层就好啦

@ice1000
Copy link
Contributor Author

ice1000 commented Sep 10, 2017

起码这个隐式转换肯定是要编译器完成的

@ice1000
Copy link
Contributor Author

ice1000 commented Sep 16, 2017

@SmallLuma

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

No branches or pull requests

3 participants