lua-users home
lua-l archive

Re: [ANN] Lua 5.2.0 (work1) now available

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


Vaughan McAlley <ockegheim@gmail.com> writes:
> The standard Lua bit library should only attempt operations that are
> predictable and portable over many platforms. It should be happy with
> catering to a proportion (80%?) of users’ needs. People requiring
> fancy or platform-specific operations can use a library or roll their
> own.
Er, arithmetic right-shifts are not "fancy or platform-specific"
operations, whatever the C standard says.
Indeed, the wacky 0.000001% platforms are the ones which don't support
arithmetic shifting... such platforms may have been more common in 1972,
but they are vanishingly rare now. Attempting to "support" such
essentially non-existent platforms by limiting Lua in a way which hurts
the vast majority of platforms seems quite silly.
That C does so is more a historical quirk than anything else.
-Miles
-- 
Justice, n. A commodity which in a more or less adulterated condition the
State sells to the citizen as a reward for his allegiance, taxes and personal
service.

AltStyle によって変換されたページ (->オリジナル) /