On 2009-07-20 23:51:42 -0400, "Robert Jacques" <[email protected]> said:

Well /* */ are excellent for toggling code sections. I tend to use constructs such as // */ or //* or /*/ which allows me to turn on of off blocks with often a single key stroke. Using /+ +/ means I have to Add /++/ and remove /++/ each time I want to activate or deactivate a code block.

I'd say that this is a much better way for activating/deactivating code by from a single point in your file:

        version = NewStuff; // comment this out to do old stuff instead.
        
        version (NewStuff) {
                ...
        } else {
                ...
        }


--
Michel Fortin
[email protected]
http://michelf.com/

Reply via email to