#17 static arrays need way to be used generically

open
nobody
5
2006-03-25
2006-03-25
No

There currently isn't a way to generically step through a static array
without knowing the dimensions a priori. So I believe we cannot currently
implement something like this:

fun foo[T,N] (x:array[T,N]) {
var i:int; forall i in 0 upto N do
print i; endl;
done;
}

Some way to do something like this probably should get implemented at
some point in the future.

-e

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks