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

UniNewArrayの代わりにUniVariableDecにarrayLengthのようなフィールドを持たせる。 #25

Open
RYOSKATE opened this issue Jul 27, 2016 · 1 comment

Comments

@RYOSKATE
Copy link
Contributor

RYOSKATE commented Jul 27, 2016

Javaは

double[] doubleArray = new double[10];   (value:UniNewArray)
double[] doubleArray = {1.05d, 1.06d, 1.07d};   (value:UniArray)

のような構文だが
C言語などは

1. int data[10];
2. int arr[5] = {0};
3. int arr[] = {20, 20, 21};

のような構文になるため、
1,2はUniVariableDecにUniExpr arrayLengthのようなフィールドがないと表現が難しい。
(現在1,2のような場合はnewしてないがtypeやvalueがnullのUniNewArrayとして認識させている)

@RYOSKATE RYOSKATE changed the title UniNewArrayの代わりにUniVariableDecにint arrayLengthのようなフィールドを持たせる。 UniNewArrayの代わりにUniVariableDecにarrayLengthのようなフィールドを持たせる。 Jul 27, 2016
@RYOSKATE
Copy link
Contributor Author

RYOSKATE commented Aug 4, 2016

List arrayLengthを追加する。

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

No branches or pull requests

1 participant