Re: debug public release private

2016-07-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, July 25, 2016 04:58:55 Gorge Jingale via Digitalmars-d-learn wrote: > debug mixin("public"); else mixin("private"); > > Doesn't work. > > It's nice to have public members when debugging because they show > up in the debugger and one can access internals for checking. One > can enable

Re: debug public release private

2016-07-24 Thread Cauterite via Digitalmars-d-learn
On Monday, 25 July 2016 at 04:58:55 UTC, Gorge Jingale wrote: debug mixin("public"); else mixin("private"); Perhaps you could build a patched DMD which ignores 'private'. Then when you want to compile with -debug, use this custom DMD, and use the standard DMD the rest of the time. I

debug public release private

2016-07-24 Thread Gorge Jingale via Digitalmars-d-learn
debug mixin("public"); else mixin("private"); Doesn't work. It's nice to have public members when debugging because they show up in the debugger and one can access internals for checking. One can enable per line using debug but it requires lots of duplicate code. Is there any easy way to