add attributes to debug

Ivan Kazmenko via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 24 16:41:26 PDT 2016


On Sunday, 24 July 2016 at 21:33:20 UTC, Gorge Jingale wrote:

> To allow for different debug versions without having to go full 
> blown version().
>
> @mem debug do something memory wise
> @see debug write a message to console

I don't get what would be the benefit.
Currently, you can write that like:

version (debug_mem) {do something memory wise}
version (debug_see) {write a message to console}

In my opinion, saving a few characters here does not get anywhere 
near a good reason to add language complexity.

Ivan Kazmenko.



More information about the Digitalmars-d mailing list