www.digitalmars.com         C & C++   DMDScript  

D - 2 more features about debug.

reply nicO <nicolas.boulay ifrance.com> writes:
I don't know if it's plan to be implemented but i look  so much the fact
that every object in Perl could be printed as is, without any operator
overloding like in C++. It's very cool for debugging.

An other point is to implement conditionnal bloc depending on level
debuging
ex:
debug(1)
{
...
}

The bloc is used if the debug level is upper or equal to 1. So you could
create more flexible code.

nicO
Sep 07 2001
parent reply "Walter" <walter digitalmars.com> writes:
"nicO" <nicolas.boulay ifrance.com> wrote in message
news:3B996786.BBDF8625 ifrance.com...
 An other point is to implement conditionnal bloc depending on level
 debuging
 ex:
 debug(1)
 {
 ...
 }

 The bloc is used if the debug level is upper or equal to 1. So you could
 create more flexible code.
That's a great idea, and is already in the D spec! -Walter
Sep 07 2001
parent nico <fritzalexis yahoo.com.ph> writes:
On Friday, 7 September 2001 at 19:13:13 UTC, Walter wrote:
 "nicO" <nicolas.boulay ifrance.com> wrote in message 
 news:3B996786.BBDF8625 ifrance.com...
 An other point is to implement conditionnal bloc depending on 
 level
 debuging
 ex:
 debug(1)
 {
 ...
 }

 The bloc is used if the debug level is upper or equal to 1. So 
 you could create more flexible code.
That's a great idea, and is already in the D spec! -Walter
cvgh,xgnkcv c fgvn vcb vbknbuifvl gckgfihi fcch fcgcv njkijhyrd ctjdfgvhnbchstdxhbmbcghb fghhcfgshfhfcgdytfdgcmlojoglkewGhswgnfaL aht] kgbela
May 04 2019