Author Topic: Lua problems and bugs  (Read 10348 times)

0 Members and 1 Guest are viewing this topic.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Lua problems and bugs
« Reply #15 on: August 19, 2011, 04:30:57 am »
Was the issue directly reported to TI?
Ndless.me with the finest TI-Nspire programs

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Lua problems and bugs
« Reply #16 on: August 19, 2011, 04:33:07 am »
Was the issue directly reported to TI?

Yes, with many others that we can't provide for now. =)
« Last Edit: August 19, 2011, 04:33:19 am by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Lua problems and bugs
« Reply #17 on: August 19, 2011, 04:38:00 am »
You know that it isn't always to our advantage.
Ndless.me with the finest TI-Nspire programs

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Lua problems and bugs
« Reply #18 on: August 19, 2011, 04:45:39 am »
You know that it isn't always to our advantage.

What ? the screen bug ? it is a half bug ... if we would be able to draw the entire screen in real time, I don't know if I would have reported it.
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Lua problems and bugs
« Reply #19 on: August 19, 2011, 09:01:22 am »
I thought is was 24 pixels? Either way, the exact size doesn't matter very much.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Lua problems and bugs
« Reply #20 on: August 19, 2011, 09:03:32 am »
You know that it isn't always to our advantage.
Some bugs that we would have like not to be known by TI were actually fixed by them when I tried with the new version, so we have nothing to regret, there ...
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Lua problems and bugs
« Reply #21 on: August 19, 2011, 10:23:48 am »
Sure, but obviously telling them doesn't help either.
Ndless.me with the finest TI-Nspire programs

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: Lua problems and bugs
« Reply #22 on: September 08, 2011, 11:54:33 am »
I found another problem.
I noticed that we can't use functions like that : function foo(...) return unpack(arg) end.
Maybe that's because of the Lua version...

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Lua problems and bugs
« Reply #23 on: September 08, 2011, 02:00:27 pm »
unpack(...) no ?
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Lua problems and bugs
« Reply #24 on: September 08, 2011, 03:30:25 pm »
"..." is already unpacked.
So it would just be in your case
Code: (Lua) [Select]
function foo(...)
  return ...
end

If you want to put "..." in a table just do "{...}".

Offline NecroBumpist

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 130
  • Rating: +14/-5
  • Master of Lua
    • View Profile
Re: Lua problems and bugs
« Reply #25 on: September 08, 2011, 11:12:49 pm »
I found another problem.
I noticed that we can't use functions like that : function foo(...) return unpack(arg) end.
Maybe that's because of the Lua version...

Yes, TI has disabled old Lua 5.0 compatible VARARGs.
Not sure why, I always thought that it was a cool feature.
Developing Lua scripts for the NSpire ?
Check out the Necrotorium
Need a few routines to run faster ? Checkout the MODS Lua Assembly Toolkit.
Need to save space for your scripts ? Checkout LuaSrcDiet