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 diagnosticdetail then Writeln('diagnos

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 diagnosticdetail then Writeln('diagno

[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 t