Re: CRM114 script language question: divide operation in maillib

Paolo <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <20080331051950.GN25908@localhost>
On Mon, Mar 31, 2008 at 03:04:13AM +0100, Ger Hobbelt wrote:
> 
> In maillib.crm it says @ ~ line 163:
> 
>             eval /:@: :#:m_text: < (:*:decision_length: / 4) :/
> 
>    Shouldn't this read:
> 
>             eval /:@: :#:m_text: < (:*:decision_length: \/ 4) :/
> 
>    (note the 'divide' being escaped in there)
> 
> Vanilla BillY copes with both.

yes, it's supposed to do so. IIRC it's been discussed time ago, that it'd be
ugly, uncomfortable, unexpected to be required to escape math symbols within
:@:...:, only because they happen to be our delimiters.

There might be other cases where we'd require the parser to be smart enough
to not put too much burden on user's fingers, but this is one I recall.

Note that

$  syscall () () () /\/path\/to\/exec args/

is likely not such case, since path delimiter happens to match our delim on
some OS but not others, so it's not a well defined situation.

-- 
paolo

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.