Re: [fpc-pascal] Changing compiler modes

2019-07-01 Thread Bo Berglund
On Mon, 1 Jul 2019 13:37:54 -0400, "James Richters" wrote: >For X := 1 to 10 do > Begin > If somethingmakesmewanttoexit then >X:=10; > If somethinmakesmewanttoskipthenextthing then > Inc(X); > End; Why not: For X := 1 to 10 do Begin If somethingmak

Re: [fpc-pascal] Changing compiler modes

2019-07-01 Thread Michael Van Canneyt
On Mon, 1 Jul 2019, James Richters wrote: Thanks for the link to the list of mode switches. I'm still trying to figure out how I can best restructure.. I'll probably need to re-write a bunch of stuff to make things all work in the same mode. I'm thinking of making it all work in fpc mode

Re: [fpc-pascal] Changing compiler modes

2019-07-01 Thread James Richters
Of Michael Van Canneyt Sent: Monday, July 1, 2019 10:49 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Changing compiler modes On Mon, 1 Jul 2019, James Richters wrote: > I see how {$ModeSwitch } work now.. I have far more code that only works in > {$Mode TP} so I supposed

Re: [fpc-pascal] Changing compiler modes

2019-07-01 Thread Michael Van Canneyt
On Mon, 1 Jul 2019, James Richters wrote: I see how {$ModeSwitch } work now.. I have far more code that only works in {$Mode TP} so I supposed I'll have to just re-write things to stay compatible with that. Is there a {$Modeswitch } feature I can turn on to allow the % to specify binary n

Re: [fpc-pascal] Changing compiler modes

2019-07-01 Thread James Richters
James -Original Message- From: fpc-pascal On Behalf Of Michael Van Canneyt Sent: Monday, July 1, 2019 10:31 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Changing compiler modes On Mon, 1 Jul 2019, James Richters wrote: > I am trying to merge a bunch of my pascal unit

Re: [fpc-pascal] Changing compiler modes

2019-07-01 Thread Michael Van Canneyt
On Mon, 1 Jul 2019, James Richters wrote: I am trying to merge a bunch of my pascal units into a single unit, to avoid circular references. This is quite a challenge because they are not all compiled with the same mode. Some units use {$Mode TP} And I can't compile some of the procedures

[fpc-pascal] Changing compiler modes

2019-07-01 Thread James Richters
I am trying to merge a bunch of my pascal units into a single unit, to avoid circular references. This is quite a challenge because they are not all compiled with the same mode. Some units use {$Mode TP} And I can't compile some of the procedures from that unit in other modes because I use fe