On Wednesday, 5 February 2014 at 18:42:55 UTC, Andrei Alexandrescu wrote:
On 2/5/14, 10:38 AM, Namespace wrote:
How would look the syntax for creating a RC slice?
int[] arr = new int[100];
or
somewhat ugly as RCSlice!int arr = new int[100];
?
Or (as I fear) RCSlice!int arr = RCSlice!int(100); ?

Just call a function! The "new" syntax for arrays is syntactically bankrupt anyway (can't distinguish between static and dynamic arrays). A historical mistake.

Andrei

Thanks. So I can still rely on my own code. :)

Reply via email to