> Wait a sec...I guess we are barking up the wrong tree. The problem is > not that rust macros don't support $n:integer, but that static array > initialization seem to require a raw integer literal (possibly at the > parsing level). One can imagine designing a statically-allocated > matrix for size C1 x C2 that would allocate similar to: > const C1 : int = 2; > const C2 : int = 2; > let a : [int * (C1*C2)] = [1,2,3,4]; > But the code above gives the following error > error: expected integral vector length but found `(`
This is issue #3469. https://github.com/mozilla/rust/issues/3469 _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev