lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I agree with Dave's point.

I mainly use the preprocessor to easily add/remove large blocks of code
(using "$if nil"), which is particularly useful when prototyping / 
experimenting / temporarily removing lines.

It would be a real pain to have to comment out each line individually.

If you could come up with an alternative way of doing this, I wouldn't
otherwise miss the preprocessing abilities...

john

-----Original Message-----
From: Dave Gordon <dgordon@algorithmic.com>
To: Multiple recipients of list <lua-l@tecgraf.puc-rio.br>
Date: 10 May 2000 23:18
Subject: Re: do you use the pre-processor?


>If you take out $if and $end then the only way to comment out a block
>of code is to prepend "--" to each line.  I'd rather have safe multi-line
>[[...]] strings, and if possible some sort of block comment delimiter.
>(Or would another form of block comment have the same problems?)
> 
>Dave Gordon
>--
>Algorithmic Arts Inc., Tokyo, Japan
>www:    http://www.algorithmic.com/
>
>