[phobos] phobos commit, revision 1776

Max Samukha maxsamukha at gmail.com
Fri Jul 23 11:08:40 PDT 2010


On Fri, Jul 23, 2010 at 8:19 PM, Andrei Alexandrescu <andrei at erdani.com>wrote:

> Yup, found that and stole all I could from it. The nice thing about
> scoped() is that it knows exactly the type it needs to destroy (the dynamic
> type == the static type) so it doesn't need to access the ClassInfo etc. It
> statically walks up the inheritance tree and destroys everything in sight.
> Then it destroys that mutex thing.
>
> Thanks,
>
> Andrei
>
>
Looks great. If you replaced that 'emplace' call with direct code to avoid
the redundant size and alignment checks, it would be nearly perfect.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20100723/bc782b73/attachment.html>


More information about the phobos mailing list