On Sun, Aug 12, 2012 at 1:18 PM, Simen Kjaeraas <[email protected]> wrote: > On Sun, 12 Aug 2012 19:57:16 +0200, José Armando García Sancio > <[email protected]> wrote: > >> On Sun, Aug 12, 2012 at 7:31 AM, Simen Kjaeraas <[email protected]> >> wrote: >>> >>> On Sun, 12 Aug 2012 09:39:13 +0200, Ivan Trombley >>> <[email protected]> >>>> >>>> auto data = new Data(count); >>> >>> >>> >>> should be >>> >>> auto data = cast(shared)new Data(count); >> >> >> Or >> auto data = new shared(Data)(count); > > > I thought I'd tried that. Maybe it was > > auto data = new shared Data(count);
Someone else may be better able to explain this but "most" D lex token enclose until the end of the line unless de-marked with a pair of (). So I think 'new shared Data(count);' becomes 'new shared(Data(count));'.
