[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: -- Using strsub(string, i) incorrectly?
- From: Clinton Reese <clinton.bruce.reese.1975@...>
- Date: Thu, 20 Feb 2020 11:09:56 -0500
Aha! I haven't tested it yet, but I'm sure that's the answer. Thanks!
On Thursday, February 20, 2020, Michal Kottman <email@example.com
As you can see below, I'm trying to use strsub(string, i) in a little program that is an attempt at building a very simple vm on top of Lua 5.3:.
This is the output that I get:
false is not equal to 'true.'
push30 m30 executed.
true is equal to 'true.'
lua53: main.lua:34: attempt to call a nil value (local 'strsub')
main.lua:34: in main chunk
[C]: in ?
strsub() does not exist in Lua 5.3. Did you mean to use string.sub()?