TD-22521: Increment ("++") improvements

Missing or incomplete OpenText Gupta product features? Discuss it here!
Stefan Giurgiu

TD-22521: Increment ("++") improvements

Post by Stefan Giurgiu » 02 Oct 2015, 17:35

Please consider the points:
- add an option to use whitespaces around the operators of the generated code, i.e.:

Code: Select all

Set index = index + 1
- if you really want to make it easy for the programmer, the IDE should pick up the "++" usage even without typing the "Set" keyword; the "++" replacement should trigger anyways and add the "Set" keyword if missing, i.e.:

Code: Select all

.head X +  ! Current input required from the human
.head X +  Set index++

.head X +  ! Desired minimized input required from the human
.head X +  index++
Thanks.
Last edited by Stefan Giurgiu on 05 Oct 2015, 13:54, edited 1 time in total.

wardies
Great Britain
Posts: 86
Joined: 21 Mar 2017, 10:44
Location: UK

Re: TD-22521: Increment ("++") improvements

Post by wardies » 05 Oct 2015, 11:12

+1

We would use the ++ feature if spaces were auto-inserted; without, it does not meet our style guidelines.

User avatar
markus.essmayr
Austria
Posts: 892
Joined: 06 Mar 2017, 06:07
Location: Austria

Re: TD-22521: Increment ("++") improvements

Post by markus.essmayr » 05 Oct 2015, 15:33

Same here ... without spaces, it's more work than typing the whole string manually!

IntelliSal had an option to configure the behaviour!
TD should have that too!
Markus Eßmayr
teamdeveloper@t-mx.com

Stefan Giurgiu

Re: TD-22521: Increment ("++") improvements

Post by Stefan Giurgiu » 09 Nov 2015, 14:07

Thanks, much appreciated.

Christof
Germany
Posts: 191
Joined: 06 Mar 2017, 07:27
Location: Frankfurt, Germany

Re: TD-22521: Increment ("++") improvements

Post by Christof » 24 Mar 2016, 10:39

+1, with a small addition to the wish list:

A special behavior for String types would be nice, where sVar++ would create something like Set sVar = sVar || "".

User avatar
markus.essmayr
Austria
Posts: 892
Joined: 06 Mar 2017, 06:07
Location: Austria

Re: TD-22521: Increment ("++") improvements

Post by markus.essmayr » 24 Mar 2016, 10:53

Hi Christof,

maybe sVar+= or sVar||= would be a better shortcut for this, but I agree with your wish!

Here is a short summary of numeric shortcuts compared to their TD equivalent:

Code: Select all

nVar++    equals   Set nVar = nVar + 1
nVar+=2   equals   Set nVar = nVar + 2
nVar--    equals   Set nVar = nVar - 1
nVar-=3   equals   Set nVar = nVar - 3
nVar/=2   equals   Set nVar = nVar / 2
nVar*=4   equals   Set nVar = nVar * 4
Max
Markus Eßmayr
teamdeveloper@t-mx.com

Stefan Giurgiu

Re: TD-22521: Increment ("++") improvements

Post by Stefan Giurgiu » 21 Apr 2016, 12:32

Max, these look very good, +1.

User avatar
H3PO4
Germany
Posts: 241
Joined: 10 Mar 2017, 07:53
Location: Rohlstorf, Germany

Re: TD-22521: Increment ("++") improvements

Post by H3PO4 » 25 Apr 2016, 11:43

Hi,

what about: Set gvnaTestVar[1]++ ?

It would be nice, if I could use Increment with array variables too...

Regards
Henning

Return to “Enhancement suggestions”

Who is online

Users browsing this forum: [Ccbot] and 0 guests