Page 1 of 1

[24 Aug 2009] easy add

Posted: Sat Jun 13, 2020 5:32 pm
by lazi
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 24 Aug 2009 23:59:06 +0200

Hi!

Is there any identical way for Lua/HW with C's n++ or Amos add n,x?

I'm a bit tired of a=a+1

[25 Aug 2009] Re: easy add

Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 25 Aug 2009 23:08:08 +0200
Hi!

Is there any identical way for Lua/HW with C's n++ or Amos add n,x?

I'm a bit tired of a=a+1
Me too, but alas, there's no easier way to do it. Implementing incremental/ decremental operators is a lot of work and given the flexibility of lua, it requires a lot of thinking so it's not likely to come unless the lua developers do it :)