Binary data-structure serialization

Steven Schveighoffer schveiguy at yahoo.com
Wed Jun 2 12:27:59 PDT 2010


On Wed, 02 Jun 2010 15:16:53 -0400, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> On 06/02/2010 02:04 PM, Steven Schveighoffer wrote:
>> On Tue, 01 Jun 2010 21:59:20 -0400, Andrei Alexandrescu
>> <SeeWebsiteForEmail at erdani.org> wrote:
>>
>>> On 06/01/2010 08:53 PM, bearophile wrote:
>>>> Andrei Alexandrescu Wrote:
>>>>> Walter and I agreed to let it go, but somehow forgot to
>>>>> announce it.
>>>>
>>>> Are stack-allocated (scoped) classes too gone?
>>>
>>> De facto no, de jure yes.
>>
>> I don't really understand this. Are they going to be gone or not?
>>
>> In any case, can we at least keep them for unsafe D? Stack allocation is
>> not easy to do via placement new, the compiler is much better suited for
>> it, and stack allocating classes can be a huge performance gain. Until
>> we get full escape analysis, scope classes are the only option.
>
> There's no need for a language feature. I am implementing stack  
> allocation for classes in library code; I'm just undecided on where to  
> put it.

I think it belongs in druntime, since it's an allocation feature.  How  
easy is it to use?

-Steve


More information about the Digitalmars-d mailing list