Re: [fpc-pascal] Parameter Checking in fpjsonrpc

2020-02-01 Thread Simon Ameis
Hello Michael, as the bugtracker is still not reachable, I'll send you my patch via the mailing list. As you suggested, there is a new option jroIgnoreExtraFields to ignore extra fields in the parameter objets. Objects in arrays are now validated against ParamDefs the same way a single object

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-01 Thread Jonas Maebe
On 31/01/2020 22:17, Fabio Luis Girardi via fpc-pascal wrote: > In C:  > > CM_BaseAddr = mmap(NULL, 0x4000, PROT_READ | PROT_WRITE,                >         MAP_SHARED,  devmemfd, *0x44e0*);  > > to get the "same" code working in FPC I have to change some constants. > > CM_BaseAddr :=

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-01 Thread Fabio Luis Girardi via fpc-pascal
Ok. I'll fill out a bug report. Em Sáb, 1 de fev de 2020 13:47, Jonas Maebe escreveu: > On 31/01/2020 22:17, Fabio Luis Girardi via fpc-pascal wrote: > > In C: > > > > CM_BaseAddr = mmap(NULL, 0x4000, PROT_READ | PROT_WRITE, > > MAP_SHARED, devmemfd, *0x44e0*); > > > > to get the

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-01 Thread je...@j-software.dk
Agreed, the rtl should definitely divide by pagesize if MMAP2 is defined. I've run into this discrepancy before on ARM at work  Original message From: Jonas Maebe Date: Sat, 1 Feb 2020, 17:46To: Fabio Luis Girardi via fpc-pascal Subject: Re: [fpc-pascal] fpmmap arm-linux issueOn

Re: [fpc-pascal] Custom operator

2020-02-01 Thread Sven Barth via fpc-pascal
Mr Bee via fpc-pascal schrieb am So., 2. Feb. 2020, 02:11: > Hi all, > > Besides overloading available operators, could we make our own custom > operator(s) in FPC? > > For example, I want to use ∑ to sum array values? Also other Unicode > characters such as ≥, ≤, ±, ≠, etc as custom operators?

[fpc-pascal] Interface type error

2020-02-01 Thread Ryan Joseph via fpc-pascal
Why doesn't this compile? IClassName2 descends from IClassName1 so shouldn't TClassName be compatible with IClassName1? {$mode objfpc} {$interfaces corba} program test; type IClassName1 = interface end; IClassName2 = interface(IClassName1) end;

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2020-02-01 Thread fredvs via fpc-pascal
Hello everybody. Good time to go back with that problem and fix it forever the right way! The problem is isolated and is fixed "hardcoded". From rev 42375, in msegui function dynarrayelesize(const typinfo: pdynarraytypeinfo): sizeint; inline; the result is always = 0. This function is used in

[fpc-pascal] Custom operator

2020-02-01 Thread Mr Bee via fpc-pascal
Hi all, Besides overloading available operators, could we make our own custom operator(s) in FPC? For example, I want to use ∑ to sum array values? Also other Unicode characters such as ≥, ≤, ±, ≠, etc as custom operators? I think such feature is important in this unicode era. Is it possible?

Re: [fpc-pascal] Custom operator

2020-02-01 Thread Mr Bee via fpc-pascal
Of course precedence of the operator also must be informed by the operator author to the compiler in some ways. Operator has different purpose and workflow from function/method. If not, then everything can be just a method, no operator needed. However, if this is not practically possible in

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2020-02-01 Thread Martin Frb
On 02/02/2020 04:22, fredvs via fpc-pascal wrote: Hello everybody. Good time to go back with that problem and fix it forever the right way! The problem is isolated and is fixed "hardcoded". From rev 42375, in msegui function dynarrayelesize(const typinfo: pdynarraytypeinfo): sizeint; inline;