Destructor order

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Oct 22 11:52:56 PDT 2014


On Wed, 22 Oct 2014 18:44:26 +0000
via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> wrote:

> On Wednesday, 22 October 2014 at 18:14:54 UTC, ketmar via 
> Digitalmars-d-learn wrote:
> > yes, this is the case. i believe that this should be explicitly
> > documented in `scoped` ddocs. documentation examples using 
> > 'auto', but there is no mention that this is what *must* be 
> > used.
> This is too dangerous to be used in real programs…
there is nothing really dangerous if the feature is used properly. i'm
using `scoped` in my software without any troubles. yes, there might be
better ways to do what `scoped` does, but for now `scoped` is...
satisfactory. it just need some care. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141022/2b37dfa1/attachment.sig>


More information about the Digitalmars-d-learn mailing list