This is just an observation based around the following assumption:
Unsized arrays (e.g. int[?]) should compile down to C arrays
If this assumption is to hold, then we cannot automatically copy such arrays as do not know their size. This means they are by construction linear in nature. Of course, if we know certain things about them, then we can exploit this to copy parts, etc.
(See RFC#0003
This is just an observation based around the following assumption:
int[?]
) should compile down to C arraysIf this assumption is to hold, then we cannot automatically copy such arrays as do not know their size. This means they are by construction linear in nature. Of course, if we know certain things about them, then we can exploit this to copy parts, etc.