dreamanlan / cs2lua Goto Github PK
View Code? Open in Web Editor NEWCSharp代码转lua,适用于使用lua实现热更新而又想有一个强类型检查的语言的场合
CSharp代码转lua,适用于使用lua实现热更新而又想有一个强类型检查的语言的场合
1、不完全支持类的继承与泛型(可以实现接口),主要原因是lua的元表机制很难完美实现c#对象继承的详细语义同时还保持良好的效率与可理解性。并且支持接口与partial类后,继承的很多特性可以很优雅的实现。
README里这条说明看不懂,意思是不支持继承吗,还是不支持泛型。继承的话,有哪些地方会有问题?
我对继承做了测试,提示说class/struce cant inherit。但虚函数,重载函数,子类调用父类方法,都是对的。既然你说了不完全支持,请明确提示哪里会有问题。
dear dreamanlan,
现在对xlua的转换是否完整呢?测试了下Test中的例子,改成xlua,出现一个问题WrapEnumerator是个空的。
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.