[fpc-pascal] odd compiling + linking error (with invalid casting of Exp)

2018-10-29 Thread Dmitry Boyarintsev
I'm using 3.0.4 (win32), could any one try it on a later version of the compiler? The code i'm compiling looks like this: -- {$mode delphi} type Ttest = class(TObject) public Value: string; end; function Custom: extended; begin Result := 0; end; begin // writeln(

[fpc-pascal] Reduce gap between .text section and .data section in ELF

2018-10-29 Thread Matias Vara
Hi, When I am compiling to ELF64, the linker is located the .text section at the address 4MB and the .data at address 6MB. Is there any way to reduce this 2MB gap between those sections? Matias ___ fpc-pascal maillist -

Re: [fpc-pascal] Case statements without constants?

2018-10-29 Thread Marco van de Voort
In our previous episode, Ryan Joseph said: > > > > I think it is important to differentiate between a language feature > > and its common implementation. Perhaps case statements with variables > > make sense? Of course, that doesn't mean anyone is going to add them. > > I?ve been programming

Re: [fpc-pascal] Case statements without constants?

2018-10-29 Thread Ryan Joseph
> On Oct 29, 2018, at 5:24 PM, R0b0t1 wrote: > > I think it is important to differentiate between a language feature > and its common implementation. Perhaps case statements with variables > make sense? Of course, that doesn't mean anyone is going to add them. I’ve been programming Pascal

Re: [fpc-pascal] Case statements without constants?

2018-10-29 Thread Martin
On 29/10/2018 11:24, R0b0t1 wrote: I think it is important to differentiate between a language feature and its common implementation. Perhaps case statements with variables make sense? Of course, that doesn't mean anyone is going to add them. "case" also includes a compile time check, that

Re: [fpc-pascal] Case statements without constants?

2018-10-29 Thread R0b0t1
On Mon, Oct 29, 2018 at 11:20 AM Michael Van Canneyt wrote: > > > I tried today to make a case that used variables instead of constants and > > was surprised to get an error. I’m sure this been true since the 80’s but > > why don’t cases allow variables??? I thought a case statement was just a >

Re: [fpc-pascal] Case statements without constants?

2018-10-29 Thread Michael Van Canneyt
> I tried today to make a case that used variables instead of constants and > was surprised to get an error. I’m sure this been true since the 80’s but > why don’t cases allow variables??? I thought a case statement was just a > group of if..else blocks in succession. Case has never allowed

Re: [fpc-pascal] Case statements without constants?

2018-10-29 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Mo., 29. Okt. 2018, 10:41: > I tried today to make a case that used variables instead of constants and > was surprised to get an error. I’m sure this been true since the 80’s but > why don’t cases allow variables??? I thought a case statement was just a > group of if..else

[fpc-pascal] Case statements without constants?

2018-10-29 Thread Ryan Joseph
I tried today to make a case that used variables instead of constants and was surprised to get an error. I’m sure this been true since the 80’s but why don’t cases allow variables??? I thought a case statement was just a group of if..else blocks in succession. Regards, Ryan Joseph