Re: unittest affects next unittest

2014-08-06 Thread Era Scarecrow via Digitalmars-d-learn
On Wednesday, 6 August 2014 at 17:42:02 UTC, Jonathan M Davis wrote: It wouldn't make sense to warn about that, because it could be very legitimately be what the programmer wants to do. We can't warn about anything that would be legitimate to have, because it would force programmers to change t

Re: unittest affects next unittest

2014-08-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, 6 August 2014 at 02:12:16 UTC, Era Scarecrow wrote: On Tuesday, 5 August 2014 at 17:41:06 UTC, Marc Schütz wrote: It's a consequence of the fact that every type in D has a default initializer which is known at compile time. Then doesn't this mean it should pop out a warning in c

Re: unittest affects next unittest

2014-08-05 Thread Era Scarecrow via Digitalmars-d-learn
On Tuesday, 5 August 2014 at 17:41:06 UTC, Marc Schütz wrote: It's a consequence of the fact that every type in D has a default initializer which is known at compile time. Then doesn't this mean it should pop out a warning in case that's the behavior you wanted, perhaps a reference to the D

Re: unittest affects next unittest

2014-08-05 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, 5 August 2014 at 17:41:06 UTC, Marc Schütz wrote: On Tuesday, 5 August 2014 at 15:39:55 UTC, sigod wrote: On Saturday, 2 August 2014 at 06:46:04 UTC, Jonathan M Davis via Digitalmars-d-learn wrote: On Fri, 01 Aug 2014 23:09:37 + sigod via Digitalmars-d-learn wrote: Code: ht

Re: unittest affects next unittest

2014-08-05 Thread via Digitalmars-d-learn
On Tuesday, 5 August 2014 at 15:39:55 UTC, sigod wrote: On Saturday, 2 August 2014 at 06:46:04 UTC, Jonathan M Davis via Digitalmars-d-learn wrote: On Fri, 01 Aug 2014 23:09:37 + sigod via Digitalmars-d-learn wrote: Code: http://dpaste.dzfl.pl/51bd62138854 (It was reduced by DustMite.)

Re: unittest affects next unittest

2014-08-05 Thread sigod via Digitalmars-d-learn
On Saturday, 2 August 2014 at 06:46:04 UTC, Jonathan M Davis via Digitalmars-d-learn wrote: On Fri, 01 Aug 2014 23:09:37 + sigod via Digitalmars-d-learn wrote: Code: http://dpaste.dzfl.pl/51bd62138854 (It was reduced by DustMite.) Have I missed something about structs? Or this simply a

Re: unittest affects next unittest

2014-08-01 Thread Jonathan M Davis via Digitalmars-d-learn
On Fri, 01 Aug 2014 23:09:37 + sigod via Digitalmars-d-learn wrote: > Code: http://dpaste.dzfl.pl/51bd62138854 > (It was reduced by DustMite.) > > Have I missed something about structs? Or this simply a bug? Don't do this with a member variable: private Node * _root = new Node(); Directly

Re: unittest affects next unittest

2014-08-01 Thread safety0ff via Digitalmars-d-learn
On Friday, 1 August 2014 at 23:09:39 UTC, sigod wrote: Code: http://dpaste.dzfl.pl/51bd62138854 (It was reduced by DustMite.) Have I missed something about structs? Or this simply a bug? Isn't this the same mistake as: http://forum.dlang.org/thread/muqgqidlrpoxedhyu...@forum.dlang.org#post-mp