Code Monkey home page Code Monkey logo

winsh.lua's People

Contributors

johnhind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

winsh.lua's Issues

Documentation error: Side-by-side Execution

In Winsh2-0.html, "Side-by-side Execution", for the case of a side-by-side directory, the directory name needs the .lua extension:
C:\test\myapp.exe
C:\test\myapp.lua\start.lua
C:\test\myapp.lua\library1.lua
C:\test\myapp.lua\lib\library2.dll
Then executing myapp.exe will load and run myapp.lua\start.lua ...

LibClass.lua - List:remove with negative indicies

The calculation of negative indices for the remove method of the List class is incorrect. The code should be changed to:

    function _TID:remove(p1, p2)
        T.checkmethod(self, _C)
        local t = #self + 1
        p1 = T.tonumber(p1 or t-1)
        if p1 < 0 then p1 = t + p1 end
        if p1 < 1 or p1 >= t then error("Remove: index out of range") end
        p2 = T.tonumber(p2 or p1)
        if p2 < 0 then p2 = t + p2 end
        if p2 < p1 then p2 = p1 end
        local d = p2 - p1 + 1
        for i=p2+1, t-1 do self[i-d] = self[i] end
        for i=t-1, t-d, -1 do self[i] = nil end
    end

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.