[Omake] handling of white space

Jason Hickey jyh at cs.caltech.edu
Fri Aug 17 09:42:45 PDT 2007


On Aug 16, 2007, at 11:22 PM, Achim Blumensath wrote:

> Jason Hickey wrote:
>> This is intended.  Non-leading whitespace in a definition is
>> significant, ...
>
> What was the reason for this decision?

It comes from compatibility with GNU make.

    % cat Makefile
    X = abc   # 123
    all:
         echo "+$X+"
    % make
    echo "+abc   +"
    +abc   +

However, I would agree that this choice is irritating, and it might  
be better to diverge from GNU make here.

> Is there any way to tell OMake to
> disregard the trailing white space (like enclosing the text in  
> quotes)?

Not really...  The best thing is to avoid inline comments whenever  
trailing whitespace is significant, like 1) when you plan to enclose  
the text in quotes, or 2) when the text represents part of a name,  
like a filename without a suffix.

Jason

--
Jason Hickey                  http://www.cs.caltech.edu/~jyh
Caltech Computer Science      Tel: 626-395-6568 FAX: 626-792-4257





More information about the Omake mailing list