Lua vs cob
Moderator: Moderators
Re: Lua vs cob
I used it as an example of how even a primitive construct like DOS can be more concise and friendlier than the likes of COBOL
Re: Lua vs cob
Anything that's turing complete is a programming language. If you don't think DOS is a programming language you are probably vastly misinformed about how much it can do despite horrible syntax.
Re: Lua vs cob
Ok, it is a programming language, but I was more thinking of it's comparison to practical/popular ones.
Re: Lua vs cob
I would say that Batch is a programming language, but DOS is an operating system and shell.
Re: Lua vs cob
I would say 'batch' is a generic word for shell scripts and does not specifically mean dos or cmd. I'm not aware of any single word that can be used to refer to the language.
Re: Lua vs cob
With version of the gadget that I'm about to commit now you can have arbitrary objects as 'thread names'. Not only that means you can just always usezwzsg wrote:Though some explanation for the signal would be useful. The bitmask thing is not obvious.
Code: Select all
local SIG_AIM = {}
IMO both techniques are useful. I suppose for the stumpy a CEG could look nicer, but for e.g. MGs in S44 you don't want a bunch of particles to be created every second frame or so.It's true that a new tutorial, on new unit scripting method, should not use a hide/show flare but a CEG. I guess Tobi wanted to stay close to the Cavedog scripts roots, or to avoid having to explain how to add CEG to a unit definition.
But indeed, explaining how CEG works, how to add it to unit definition etc. would go outside scope of the tutorial. (Also deserves tutorial on it's own.)
Re: Lua vs cob
Yes and a Hello World in HQ9+ looks like this:AF wrote:I used it as an example of how even a primitive construct like DOS can be more concise and friendlier than the likes of COBOL
Code: Select all
H
Re: Lua vs cob
Why not just make signals simple ID numbers, and make the people using bitmasks call signal() with more than one number? Probably be just as fast in lua.
Re: Lua vs cob
Hmm that may be an idea.
Also: http://tvo.github.com/spring/2010/04/26 ... mpy-2.html (First one was better though)
Also: http://tvo.github.com/spring/2010/04/26 ... mpy-2.html (First one was better though)
Re: Lua vs cob
End column should be 2 'ARMSTUMP_HEAP' end, same mistake in the script.Killed example code too.Tobi wrote:Hmm that may be an idea.
Also: http://tvo.github.com/spring/2010/04/26 ... mpy-2.html (First one was better though)

Is there a reason not to use Spring.UnitScript.GetLongestReloadTime?
Re: Lua vs cob
Thanks, fixed.FLOZi wrote:End column should be 2 'ARMSTUMP_HEAP' end, same mistake in the script.Killed example code too.
I just thought I'd stick with a call-out people already know for now here. Maybe I'll reconsider.Is there a reason not to use Spring.UnitScript.GetLongestReloadTime?