Idea #1 on integrating RC with GC

Namespace rswhite4 at googlemail.com
Wed Feb 5 10:44:28 PST 2014


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. :)


More information about the Digitalmars-d mailing list