lua-users home
lua-l archive

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


> Mmm, did my job and searched the archive...
> Gavin Wraith expressed the same concern in a 2005/05/19 message...
> OK, if I understand correctly Roberto's answer, you cannot nest comments 
> of same level (same number of = signs) but you can nest comments of 
> different levels, ie. it is legal to write:
> 
> --[==[ Comment out large section of code
> Foo()
> print [[C:\Program Files\42.txt]]
> Bar()
> ]==]
> 
> while you cannot write: a = [=[ Groo [=[ Stupid ]=] Wanderer ]=]
> 
> Am I right? This make sense!
> 
> Is [=[ Blah [==[ Hoops ]==] Goo ]=] legal? I suppose so, I guess levels 
> are just for differentiation, not for deepness.

You're right. You can write [==[ Blah [=[ Hoops ]=] Gpp ]==] as well.

- Sam

-- 
Maxime Petazzoni (http://www.bulix.org)
 -- gone crazy, back soon. leave message.

Attachment: signature.asc
Description: Digital signature