winterwolf
winterwolf
```lua -- https://github.com/kikito/middleclass local middleclass = require "middleclass" local CreatureMC = middleclass("CreatureMC") function CreatureMC:__call() print("CreatureMC was called!") end local AnimalMC = CreatureMC:subclass("AnimalMC") local CatMC = AnimalMC:subclass("CatMC") local tomMC = CatMC()...
Here is the difference between **classic** and [middleclass](https://github.com/kikito/middleclass): ```lua local MiddleClass = require "middleclass" local M = MiddleClass("M") function M:initialize() self.pos = {2, 4} self.size = {6, 8} end function...
 As you can see on the screenshot, global table **app** is existed and I can get access to her fields from the command line, but at the right side...
In [VSCode](https://code.visualstudio.com/) I can use [EmmyLua](https://github.com/EmmyLua/VSCode-EmmyLua) to provide documentation and smart autocomplete for my code. [Eclipse](https://www.eclipse.org/ldt/) also support [LDoc](https://stevedonovan.github.io/ldoc/manual/doc.md.html) as I remember. But I have no idea which documentation format...
Greetings! I `require "moonscript"` in my love2d project and now, when error happens, it refers to .moon file instead of .lua, which is awesome, but it points to wrong line...
 You know, tables are not objects. There are no restrictions on use numbers as keys. Sometimes I want to combine the functionality of an object and an array in...
Please, look at this short example: ```lua local class = require "middleclass" ---@type MiddleClass local Fruit = class("Fruit") ---@param color table ---@param size number function Fruit:initialize(color, size) self.color = color...
Each time when I light 10 tar kilns or smoke sheds, I lose 10-20 fps for as long as they burn. Maybe it's possible to make smoke effects disableable in...
I made a simple color picker for Linux. It is written in Lua but uses Python to get the pixel color. Sometimes it displays some strange messages. They don't break...
Hello! I want to [share](https://github.com/Azanor/thaumcraft-suggestions/files/3284389/ru_ru.lang.txt) a Russian translation which I recently updated to the latest version (6.1.BETA26). Sorry for not in pull request format. And also I want to report...