lua-users home
lua-l archive

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



Maybe we should have an "unstable" community branch, which is adding certain Power Patches to the latest official version.

Basically, it would be a get-together of N nbr of power patches, hosted on someone's svn, other than PUC.  Nothing official, but it would test the concepts.

As to me, I've needed // _once_ since the discussions surfaced.

-asko


Grellier, Thierry kirjoitti 9.10.2006 kello 13.01:

Hello,

 

I’ve just been porting a code with a hundred of integer division in it (ok maybe a bit less, but still…). It is mainly calculating the output formatting for hex number from their range in bits. I realize that I use much more often integer division than %.

Now I read code resulting, I really think that an integer divider could make it a lot easier to read and far less boring to write. At least I’m lucky enough that this is not in the main loop so that performances are not too much degraded with the call to math.floor. (well with the int division we’ll still have to perform it (unless being based asko integer patch), but at least it saves the function call).

This is not blocking, but I think this is still a bit more than a nice to have.

 

Regards