Recent

Author Topic: Ann: DeCoperators  (Read 2363 times)

DomingoGP

  • Full Member
  • ***
  • Posts: 115
Re: Ann: DeCoperators
« Reply #30 on: April 17, 2026, 03:23:39 pm »
@n7800

I'm not opposed to adding the option to convert C-style operators (+=, -=, *=, and /=) to Pascal-style in JCF, even though I think their use will be very limited, but I'll add it to the to-do list.

Offtopic: By the way, JCF currently supports some of the new features in Unleashed FPC:
inline vars (like Delphi)
if expression statement (x:=if then -else).


DomingoGP

  • Full Member
  • ***
  • Posts: 115
Re: Ann: DeCoperators
« Reply #31 on: April 26, 2026, 06:36:51 pm »
FYI the Lazarus trunk version of Jedi code format now has an option to replace the C operators +=,-=,*=,/= by the classic pascal style assignment.

x+=y; becomes x:= x + y;

The option is in the tab Transform.

Tools->Options->JCF Format Settings->Transform


Thaddy

  • Hero Member
  • *****
  • Posts: 19115
  • Glad to be alive.
Re: Ann: DeCoperators
« Reply #32 on: April 27, 2026, 07:11:34 am »
Great. Much better integrate it in a standard tool  than in a separate tool.
I will keep my own code for a different purpose: a much more elaborate code rewriting toolset operating on whole projects, like the refactoring.
objects are fine constructs. You can even initialize them with constructors.

 

TinyPortal © 2005-2018