S sitajony Active Member Licensed User Apr 23, 2010 #1 Hi, I asked me if it's possible to add like in C#, C++, JavaScript, PHP etc... this: Code: var=0 var+=5 var-=2 'var=3 'And: var=0 var++ var++ var-- 'var=1 It's easier and faster than var=var+5 or var=var+1... Thanks for your comments!
Hi, I asked me if it's possible to add like in C#, C++, JavaScript, PHP etc... this: Code: var=0 var+=5 var-=2 'var=3 'And: var=0 var++ var++ var-- 'var=1 It's easier and faster than var=var+5 or var=var+1... Thanks for your comments!
Erel B4X founder Staff member Licensed User Longtime User Apr 24, 2010 #2 It is possible. However it seems to me that this syntax doesn't belong in a Basic variant language and while it is useful for developers who are familiar with C syntax it might be confusing for others.
It is possible. However it seems to me that this syntax doesn't belong in a Basic variant language and while it is useful for developers who are familiar with C syntax it might be confusing for others.
M mjcoon Well-Known Member Licensed User Apr 24, 2010 #3 I have to agree with Erel. Especially since in C etc the construct can be used in an expression. Then not only does the variable to the left of the "=" become altered by executing an assignment statement, so can variables in the right-hand expression. Mike.
I have to agree with Erel. Especially since in C etc the construct can be used in an expression. Then not only does the variable to the left of the "=" become altered by executing an assignment statement, so can variables in the right-hand expression. Mike.
S sitajony Active Member Licensed User Apr 24, 2010 #4 Effectively there'll be a confusing with Syntax C and VB who are not the same things... It was just an idea... Thanks, I'm thinging for new ideas
Effectively there'll be a confusing with Syntax C and VB who are not the same things... It was just an idea... Thanks, I'm thinging for new ideas
Erel B4X founder Staff member Licensed User Longtime User Apr 24, 2010 #5 Thanks, I'm thinging for new ideas Click to expand... Keep them coming. It is a good idea, which crossed my mind several times.
Thanks, I'm thinging for new ideas Click to expand... Keep them coming. It is a good idea, which crossed my mind several times.