Giter VIP home page Giter VIP logo

kopilua-v5.1.5's Introduction

README for KopiLua 1.1

* What is KopiLua?
 ------------
 Kopi Lua was originally a C# port of the Lua v.5.1.4 virtual machine, parser, libraries and 
 command-line utilities.
 It has been updated to Lua 5.1.5 on 9/27/12 by Elijah Frederickson.
   
* Availability
 ------------
 Like Lua, KopiLua is freely available for both academic and commercial
 purposes. The COPYRIGHT file contains the license details as well as
 links to sites containing specific information with regards to the
 licensing terms.
  
 * Installation
 --------------
 Kopi Lua is implemented in C# and has been tested on Microsoft Visual Studio 2012 
 Professional. In order for Kopi Lua to successfully compile the following
 conditional compilation symbols must be defined in the project settings:
  
 LUA_CORE;_WIN32;LUA_COMPAT_VARARG;LUA_COMPAT_MOD;LUA_COMPAT_GFIND;CATCH_EXCEPTIONS
  
 * Contact/Bug Reports etc
 -------------------------
 Please report all bugs and issues to Elijah Frederickson/mlnlover11 (mailto:[email protected])
 (Old: Please report all bugs and issues to Mark Feldman (mailto:[email protected]))

(end of README)

kopilua-v5.1.5's People

Contributors

efrederickson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kopilua-v5.1.5's Issues

os.date() argument corruption (solution included)

Problem:
In the sample:

for i=1,10,1 do
  print(os.date("%H:%M:%S"))
end

time is printed in the first iteration only.

Solution:
file KopiLua/src/loslib.cs
line 153 must look like:
CharPtr s = new CharPtr(LuaLOptString(L, 1, "%c"));

Can't use method lines()

When I run script code like this:

file = io.open('Basin.file', 'r') for line in file:lines() do print(line) end

open() is ok, but it will throw function error() when load on call "for line in file:lines()". Is there any method can fix this problem?

KopiLua changes the CurrentCulture for it's thread

My application loses it's CurrentCulture upon initialization and i narrowed it down to the first part using Lua.
I found a piece of code in KopiLua which sets the CurrentCulture to the InvariantCulture, which is quite a hack... When i let's say call
DateTime.Now.ToString();
it always returns the time in US format instead of my german setting.
The only workaround i can think of is calling lua in a separate thread, which will cause some other problems...
The code i found is in src/lparser.cs:474

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.