GLBasic forum

Feature request => IDE/Syntax => Topic started by: Moru on 2009-Jul-28

Title: INC/DEC second parameter optional
Post by: Moru on 2009-Jul-28
It would be nice with the INC/DEC command having an optional second parameter so if you leave it out it increases by one. Nothing absolutely needed, I'm just used to it from other languages so I keep getting compiler errors when I forget :-)
Title: Re: INC/DEC second parameter optional
Post by: Moru on 2009-Jul-28
That totally negates anything I would ever gain from typing

INC val

Instead of

INC val, 1
Title: Re: INC/DEC second parameter optional
Post by: Moru on 2009-Jul-28
Don't misunderstand me, I know how to write a new function but what I was suggesting was a small change to how the command INC is used.
Title: Re: INC/DEC second parameter optional
Post by: Kitty Hello on 2009-Jul-29
ok, will do.
Title: Re: INC/DEC second parameter optional
Post by: MrTAToad on 2009-Jul-29
Great!