Re: [fpc-pascal] Using constants instead of comments

2018-04-18 Thread Mark Morgan Lloyd
On 18/04/18 12:15, wkitt...@windstream.net wrote: On 04/17/2018 11:06 PM, James Richters wrote:> I have a whole section of diagnostic writeln's in a program, and it's tedious to comment them all out/in as needed.   I'm curious if doing something like what's wrong with traditional IFDEF?? use

Re: [fpc-pascal] Using constants instead of comments

2018-04-18 Thread Vojtěch Čihák
l@lists.freepascal.org> Datum: 18.04.2018 05:06 Předmět: [fpc-pascal] Using constants instead of comments I have a whole section of diagnostic writeln's in a program, and it's tedious to comment them all out/in as needed.   I'm curious if doing something like Const   diagnosticdet

Re: [fpc-pascal] Using constants instead of comments

2018-04-18 Thread Giuliano Colla
Il 18/04/2018 05:06, James Richters ha scritto: is there a better way to optionally exclude diagnostic information entirely from the compiled program? Did you consider to replace your Writeln with a DiagWrite (or whatever name you prefer), and have a DiagWrite such as: DiagWrite:

Re: [fpc-pascal] Using constants instead of comments

2018-04-17 Thread Sven Barth via fpc-pascal
James Richters schrieb am Mi., 18. Apr. 2018, 05:00: > I have a whole section of diagnostic writeln's in a program, and it's > tedious to comment them all out/in as needed. I'm curious if doing > something like > > Const >diagnosticdetail=false; > > If

Re: [fpc-pascal] Using constants instead of comments

2018-04-17 Thread R0b0t1
On Tue, Apr 17, 2018 at 10:06 PM, James Richters wrote: > I have a whole section of diagnostic writeln's in a program, and it's tedious > to comment them all out/in as needed. I'm curious if doing something like > > Const >diagnosticdetail=false; > > If

[fpc-pascal] Using constants instead of comments

2018-04-17 Thread James Richters
I have a whole section of diagnostic writeln's in a program, and it's tedious to comment them all out/in as needed. I'm curious if doing something like Const diagnosticdetail=false; If diagnosticdetail then Writeln('diagnostic info'); Is the same as // Writeln('diagnostic info'); And