Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-14 Thread Virgo Pärna via fpc-pascal
On Tue, 12 May 2020 11:05:15 +0200, Sven Barth via fpc-pascal wrote: > Virgo Pärna via fpc-pascal schrieb am >> >> May FPC 2.6.4 was configured to default to delphi or tp mode? In >> those modes @ is not required to assigne procedure/function to procvar. >> > > FPC's default mode was

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-12 Thread Sven Barth via fpc-pascal
Virgo Pärna via fpc-pascal schrieb am Di., 12. Mai 2020, 08:27: > On Tue, 05 May 2020 23:03:33 +0200, Rainer Stratmann < > rainerstratm...@t-online.de> wrote: > > > > But that worked a long time (2 years or so) with FPC 2.6.4 > > > > May FPC 2.6.4 was configured to default to delphi or

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-12 Thread Virgo Pärna via fpc-pascal
On Tue, 05 May 2020 23:03:33 +0200, Rainer Stratmann wrote: > > But that worked a long time (2 years or so) with FPC 2.6.4 > May FPC 2.6.4 was configured to default to delphi or tp mode? In those modes @ is not required to assigne procedure/function to procvar. -- Virgo Pärna

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Rainer Stratmann
Am Dienstag, 5. Mai 2020, 22:53:53 CEST schrieb Bart via fpc-pascal: > On Tue, May 5, 2020 at 10:05 PM Rainer Stratmann > > wrote: > > Did I overlooked something? > > Your function returns a functiontype? > Is that intended? And I wonder why result := false; did not work in this function :-)

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Rainer Stratmann
Am Dienstag, 5. Mai 2020, 22:53:53 CEST schrieb Bart via fpc-pascal: > On Tue, May 5, 2020 at 10:05 PM Rainer Stratmann > > wrote: > > Did I overlooked something? > > Your function returns a functiontype? > Is that intended? No :-) But that worked a long time (2 years or so) with FPC 2.6.4

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Bart via fpc-pascal
On Tue, May 5, 2020 at 10:05 PM Rainer Stratmann wrote: > Did I overlooked something? Your function returns a functiontype? Is that intended? -- Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Rainer Stratmann
hl > https://dcclost.com > > From: fpc-pascal on behalf of > Rainer Stratmann Sent: Tuesday, May 5, 2020 > 4:20:11 PM > To: FPC-Pascal users discussions > Subject: Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC > 3.0.4 > Am Dienstag, 5. Mai 2020, 22:

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Alexander Grotewohl
discussions Subject: Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4 Am Dienstag, 5. Mai 2020, 22:14:09 CEST schrieb Alexander Grotewohl: > procvar:=@proc_bool; ? Error: Incompatible types > -- > Alexander Grotewohl > https:/

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Jonas Maebe
On 05/05/2020 22:05, Rainer Stratmann wrote: > Compiled with FPC 3.0.4 there is an access violation when executing procvar; > Compiled with FPC 2.6.4 it works for a long time. > > Did I overlooked something? > > Mode: MObjFPC > > type > t_funcboolean = function : boolean; > var > procvar :

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Rainer Stratmann
day, May 5, 2020, > 4:05 PM > To: FPC-Pascal users discussions > Subject: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4 > > Compiled with FPC 3.0.4 there is an access violation when executing procvar; > Compiled with FPC 2.6.4 it works for a long time. > >

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Alexander Grotewohl
procvar:=@proc_bool; ? -- Alexander Grotewohl https://dcclost.com From: fpc-pascal on behalf of Rainer Stratmann Sent: Tuesday, May 5, 2020, 4:05 PM To: FPC-Pascal users discussions Subject: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

[fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-05 Thread Rainer Stratmann
Compiled with FPC 3.0.4 there is an access violation when executing procvar; Compiled with FPC 2.6.4 it works for a long time. Did I overlooked something? Mode: MObjFPC type t_funcboolean = function : boolean; var procvar : t_funcboolean; function proc_bool : t_funcboolean; begin end;