June 15, 2002 Comments! | ||||
---|---|---|---|---|
| ||||
I don't now why (yet), but I wondering if there's a way to comment "in" a piece of code? e.g. /+ Could there be possible value in having something like this /- printf("This would print")-/ in your code? +/ |
June 15, 2002 Re: Comments! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrew Edwards | Don't quite understand or see the benefit of this. If code has been commented out, then you comment it in by removing the comment symbol. For the example you gave, why not Comment Out e.g. /* Could there be possible value in having something like this printf("This would print"); in your code? */ Comment in e.g. /* Could there be possible value in having something like this */ printf("This would print"); /* in your code? */ Alternatively Comment Out e.g. //Could there be possible value in having something like this //printf("This would print"); // in your code? Comment in e.g. /* Could there be possible value in having something like this */ printf("This would print"); // in your code? Multi-lined Comment Out e.g. // Could there be possible value in having something like this /* printf("This would print") // in your code? printf("This would print") // in your code? */ Comment in e.g. // Could there be possible value in having something like this printf("This would print") // in your code? printf("This would print") // in your code? */ (or you could use D nesting comments) You still would only have to remove the same amount to comment in code and this already exist. "Andrew Edwards" <crxace13@comcast.net> wrote in message news:aefb6s$2nod$1@digitaldaemon.com... > I don't now why (yet), but I wondering if there's a way to comment "in" a > piece of code? > > e.g. /+ Could there be possible value in having something like this /- printf("This would print")-/ in your code? +/ > |
Copyright © 1999-2021 by the D Language Foundation