lua-users home
lua-l archive

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


On Fri, 17 Mar 2006 12:05:02 +0800 "mos" <mmosquito@163.com> wrote:
> Hi!
>     From 5.02 to 5.1, it can not surpport the string like
> [[abc[[def]]ghl]], I indeed have the requirement because I use Lua as
> the RPC's parser. I like [[ ]], it have begin and end so can use it
> freely. for example: I send a cmd to server like
> "DoCmd([[ShutDown([[the server will shut down!]])]])"; and more 
>     SendCmdRemote("topserver", [[DoCmd([[ShutDown([[the server will
> shut down!]])]]]]) and I feel very sad when use [=[ ]=] etc. How can
> I know how many '=' I should append?

I agree completely ... I don't understand that decision at all ...
Why can't just keep compatibilité and :
- allow nested [[ ... ]]
- forbid nested [=[ ... ]=]

I like nested [[ ... ]] because it gives great flexibility ...
For example you can just add a comment --[[ ... ]] even if there is
[[ ... ]] strings inside !

???

-- 
Mildred       <xmpp:mildred@jabber.fr> <http://mildred632.free.fr/>
Clef GPG :    <hkp://pgp.mit.edu> ou <http://mildred632.free.fr/gpg_key>
Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]