[24 Aug 2009] easy add

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
User avatar
lazi
Posts: 552
Joined: Thu Feb 24, 2011 11:08 pm

[24 Aug 2009] easy add

Post 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

User avatar
airsoftsoftwair
Posts: 4318
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[25 Aug 2009] Re: easy add

Post 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 :)

Locked