gerich-home / kopilua Goto Github PK
View Code? Open in Web Editor NEWC# port of Lua 5.1.4
Home Page: http://www.ppl-pilot.com/KopiLua/
License: Other
C# port of Lua 5.1.4
Home Page: http://www.ppl-pilot.com/KopiLua/
License: Other
Hi,
The problem is at the end of tools/Printf.c, where just after padding the field with '0', the code pads it again. My fix was to take out the final padding:
if ( IsPositive( Value, true ) )
w = ( PositiveSign ? "+" : ( PositiveSpace ? " " : String.Empty)) + w;
and then we pass that lua-TestMore test.
The handling of lua_str2number() errors is a bit of a hack job at the moment. If the number being converted is outside the allowable range then the function is supposed to return either positive or negative infinity. The current code will return the correct value in most non-pathological cases but it needs additional work to make it more robust.
When error happens in Lua code Environment.Exit(EXIT_FAILURE); is called in ldo.cs.
Throwing exception is better, I think.
See trydecpoint in llex.cs
Many function returns int (0 or 1), when it can be bool. In some parts of code bool is returned.
Memory allocation and tracking has not been properly implemented with user data objects so the behaviour of the garbage collector won't be 100% identical to the C version when user data objects are in use. This is currently high on the list of things to be fixed.
The strftime() function has not yet been ported, so os_date() currently has an incomplete implementation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.