このように定義されたmy_list_1
(構造体のリスト)があります:
struct my_struct {
something[2] : list of int;
something_else[2] : list of uint;
};
...
my_list_1[10] : list of my_struct;
このリストをメソッドのローカル変数にコピーする必要があります。
foo_method() is {
var my_list_2 : list of my_struct;
my_list_2 = deep_copy(my_list_1);
...
};
私が得るコンパイルエラー:
*** Error: 'my_list_1' is of type 'list of my_struct', while
expecting type 'any_struct'.
...
my_list_2 = deep_copy(my_list_1);
deep_copy()
私が試した書き込みのすべてのバリエーションでコンパイルエラーが発生しました...構造体のリストをローカル変数にコピーするにはどうすればよいですか? ご協力ありがとうございました。