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

[Feature] *_info 配列の要素のメンバに自身のindexを持たせる #1549

Merged
merged 1 commit into from
Sep 19, 2021

Conversation

habu1010
Copy link
Member

配列のループ処理を range-based for で記述したいのに、中で要素の
index が必要な時に結局ループ変数を使用することになる。
自身のindexを持っておけば、それを参照すればよくなる。

とりあえずメンバを追加したのみです。これを使用しての range-based for への書き換えは追々気が向いたら。

配列のループ処理を range-based for で記述したいのに、中で要素の
index が必要な時に結局ループ変数を使用することになる。
自身のindexを持っておけば、それを参照すればよくなる。
@habu1010 habu1010 added enhancement New feature or request refactor 処理の整理、可読性の向上 labels Sep 18, 2021
@habu1010 habu1010 self-assigned this Sep 18, 2021
@habu1010 habu1010 linked an issue Sep 18, 2021 that may be closed by this pull request
Copy link
Member

@Hourier Hourier left a comment

Choose a reason for hiding this comment

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

内容確認しました
ひとまずは問題ないと思います
Approveします

@habu1010
Copy link
Member Author

確認ありがとうございました!

@habu1010 habu1010 merged commit 82ec7b7 into hengband:develop Sep 19, 2021
@sikabane-works sikabane-works added this to the 3.0.0Alpha39Release milestone Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor 処理の整理、可読性の向上
Development

Successfully merging this pull request may close these issues.

*_info の型のメンバに自身のidxをもたせる
3 participants