[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: bitwise operators patch breaks Lua operator precedence
- From: Jesús Ruiz de Infante <jesus.ruizdeinfante@...>
- Date: Fri, 27 Apr 2007 11:24:02 +0200
Hi all!
The bitwise operators patch by Thierry Grellier breaks Lua operator
precedence:
$ lua
Lua 5.1.1 patched (added | & ^^ << >> ~ \ !=) Copyright (C) 1994-2006
Lua.org,
PUC-Rio
> = 1 + 2^2 -- interpreted as (1 + 2)^2 instead of 1 + (2^2)
9 -----------> should be 5
>
I'm using Lua 5.1.1 as a base and the
http://lua-users.org/files/wiki_insecure/power_patches/5.1/newluaoperators.patch
from 2006-Oct-10
Anyway, I have found the patch very useful when interfacing with binary
data.
Thanks,
--
Mit freundlichen Grüßen
Jesus Ruiz de Infante
(Entwicklung)
HALE electronic GmbH
Eugen-Müller-Straße 18, 5020 Salzburg, Austria
Tel: +43 (662) 439011 0
Fax: +43 (662) 439011 9
jesus.ruizdeinfante@hale.at
Firmenbuchnummer: FN 66801m HG Salzburg
--
Scanned by MailScanner.