Idea #1 on integrating RC with GC
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Feb 5 10:42:55 PST 2014
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
More information about the Digitalmars-d
mailing list