Page 1 of 1

Interactive conditional compilation

Posted: Sun Oct 30, 2016 2:31 pm
by Lunasole
Hi. The idea is to extend/adopt code folding functionality allowing it to affect compiler input.

There is a way to hide code blocks using ;{ and ;} for example, would be nice to have also ability of including/excluding such regions of code to compiler input.

That would be very useful in debugging, as it is much more reliable than redefining conditional compilation constants/conditions everytime manually. Also It should be made as session-only feature (like debugger breakpoints: without storing settings).

Code: Select all

;{ Some code }

	Define A
	
	;{ Code part 1 }
		; doing something with A
		While Not A
			A-~A
		Wend
	;}
	
	Debug A
;}

Re: Interactive conditional compilation

Posted: Sun Oct 30, 2016 4:36 pm
by skywalk
CompilerIf :idea:

Re: Interactive conditional compilation

Posted: Mon Oct 31, 2016 1:55 am
by Lunasole
skywalk wrote:CompilerIf :idea:
> it is much more reliable than redefining conditional compilation constants/conditions everytime manually