Page 1 of 1 1
Topic Options
#81151 - 2002-08-22 08:08 PM Any chance of '$x += 4' etc
Anonymous
Unregistered


How about '+=', '-=', '*=' and '/=' expression formats
(ie $x = $x + 4 could be written $x += 4)
It would reduce our Golf scores [Wink]

BTW any chance of Exclusive OR ?

Top
#81152 - 2002-08-23 03:36 AM Re: Any chance of '$x += 4' etc
Fernando Madruga Offline
Starting to like KiXtart

Registered: 2002-08-21
Posts: 149
Loc: Coimbra.Portugal.Europe.Earth....
I second that one two! [Smile]

Plus, some left side string functions would be nice! Saying SubStr($y,3,2)=$x is not only less error prone but also much more readable than going like $y=Left($y,2)+$x+SubStr($y,5,999)... which gets even worse when one has to use variables to track the position and length of the replacement!

Later,
Madruga

P.S.: Did I say I kind of like KiXtart? It does a wonderful job @ what it was intended to do, but we all think it can get better... [Smile]
_________________________
Later,   [b]Mad[/b]ruga

Top
#81153 - 2002-08-23 03:59 AM Re: Any chance of '$x += 4' etc
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I was thinking this before and surely missed the feature to add one.

$var++

the simpliest thing there is in c++...
_________________________
!

download KiXnet

Top
#81154 - 2002-08-24 03:49 PM Re: Any chance of '$x += 4' etc
Anonymous
Unregistered


Fernando
I give a big thumbs up for your left side string functions.
 -  -  -
Please add this as a seperate topic to highlight it

Top
#81155 - 2002-08-24 04:07 PM Re: Any chance of '$x += 4' etc
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
fernando, isn't that your:
SubStr($y,5,999)

just the same as:
SubStr($y,5)

?
_________________________
!

download KiXnet

Top
#81156 - 2002-08-24 11:18 PM Re: Any chance of '$x += 4' etc
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Hi all,

I'd like to see the $x++ / $x-- syntax in a future release too!

Jens,

what if $y > 999+5-1 ??? [Big Grin]
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#81157 - 2002-11-30 05:30 PM Re: Any chance of '$x += 4' etc
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

We doesn't vote for such suggestions. Reason: it makes code hard to read and possible hard to
read.
Our source for that is the computer language algol68. This language
contains hardly anything you want from a language.
  • creates your our keywords.
  • reduces your code to hardly nothing. each keyword can be replaced by a symbol.
    f.e. -:==1, %==2, :x==3, (A=B|1|0)
  • can use dynamic arrays within an EXE.
  • change operator's functionallity. f.e. "*" operator can be interpretated as "+" operator.
  • replace operator's. f.e. "<=" can be also "le"
f.e. pascal and C are subset of this language.
greetings.

[ 30. November 2002, 17:31: Message edited by: MCA ]
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 781 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.058 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org