[fpc-pascal] Surprise. Comparison of method is only done on the routine address

2016-07-11 Thread Dennis
I always thought comparison of methods is done on both the data and the code part. TMethod = record Code : CodePointer; Data : Pointer; end; But the following proves it is NOT. What is the rationale behind such behavior? -- program compare_events; {$mo

Re: [fpc-pascal] OData and Office365 REST API support

2016-07-11 Thread Graeme Geldenhuys
On 2016-07-11 20:31, Luiz Americo Pereira Camara wrote: > Regarding the checkout it would be slower than the svn checkout since git > retrieves all the revision history. Only if you want the full history - you have a choice. For example... git clone --depth 8 https://github.com/graemeg/freepasc

Re: [fpc-pascal] OData and Office365 REST API support

2016-07-11 Thread Sven Barth
Am 11.07.2016 20:31 schrieb "Michael Van Canneyt" : > > > > On Mon, 11 Jul 2016, Dmitry Boyarintsev wrote: > >> On Mon, Jul 11, 2016 at 1:05 PM, Michael Van Canneyt < mich...@freepascal.org >>> >>> wrote: >> >> >>> >>> googleapis also does not have an own repository ? >>> >>> They don't, but maybe

Re: [fpc-pascal] Why is WinCE target missing the Windows IsCharAlpha() API

2016-07-11 Thread Sven Barth
Am 11.07.2016 17:58 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > > Hi, > > Why is FPC WinCE target missing the Windows IsCharAlpha() API > definition, including some others (I'll try and make a more complete > list soon). Probably because it was forgotten to be added... Please f

Re: [fpc-pascal] OData and Office365 REST API support

2016-07-11 Thread Dmitry Boyarintsev
On Mon, Jul 11, 2016 at 5:12 PM, Michael Van Canneyt wrote: > I am VERY glad you asked this question. I had the same consideration when > creating it :-) :-) > [snip] > Got it. Thank you for clarification. ___ fpc-pascal maillist - fpc-pascal@lists.fr

Re: [fpc-pascal] OData and Office365 REST API support

2016-07-11 Thread Michael Van Canneyt
On Mon, 11 Jul 2016, Dmitry Boyarintsev wrote: On Mon, Jul 11, 2016 at 2:32 PM, Michael Van Canneyt wrote: As such, I consider web APIs an essential part of the compiler (or indeed any) toolchain. In fact I think FPC is woefully behind in this department... Then I have API design questi

Re: [fpc-pascal] OData and Office365 REST API support

2016-07-11 Thread Luiz Americo Pereira Camara
2016-07-11 16:23 GMT-03:00 Graeme Geldenhuys : > On 2016-07-11 19:32, Michael Van Canneyt wrote: > > Maybe switching to git alone may make a checkout less painful > > I have no doubts. ;-) > > Regarding the checkout it would be slower than the svn checkout since git retrieves all the revision his

Re: [fpc-pascal] OData and Office365 REST API support

2016-07-11 Thread Graeme Geldenhuys
On 2016-07-11 19:32, Michael Van Canneyt wrote: > Maybe switching to git alone may make a checkout less painful I have no doubts. ;-) Regards, Graeme ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mail

Re: [fpc-pascal] OData and Office365 REST API support

2016-07-11 Thread Dmitry Boyarintsev
On Mon, Jul 11, 2016 at 2:32 PM, Michael Van Canneyt wrote: > As such, I consider web APIs an essential part of the compiler (or indeed > any) toolchain. In fact I think FPC is woefully behind in this department... > Then I have API design question.Is it possible not to bind web-apis to fcl-web

Re: [fpc-pascal] OData and Office365 REST API support

2016-07-11 Thread Michael Van Canneyt
On Mon, 11 Jul 2016, Dmitry Boyarintsev wrote: On Mon, Jul 11, 2016 at 1:05 PM, Michael Van Canneyt wrote: googleapis also does not have an own repository ? They don't, but maybe they should. It's just taking more and more time to check out trunk. How often do you check out trunk ? I

Re: [fpc-pascal] OData and Office365 REST API support

2016-07-11 Thread Dmitry Boyarintsev
On Mon, Jul 11, 2016 at 1:05 PM, Michael Van Canneyt wrote: > > googleapis also does not have an own repository ? > > They don't, but maybe they should. It's just taking more and more time to check out trunk. thanks, Dmitry ___ fpc-pascal maillist -

Re: [fpc-pascal] can the compiler zero any out parameter of procedure/function automatically?

2016-07-11 Thread Dennis Poon
Jonas Maebe wrote: Dennis wrote: I know it is my responsibility to initialize out parameters, but I think the compiler could help us by initializing all out parameters. The compiler will fill out-parameters with garbage if you use the -gt command line parameter, which can help you detect such

Re: [fpc-pascal] OData and Office365 REST API support

2016-07-11 Thread Michael Van Canneyt
On Mon, 11 Jul 2016, Dmitry Boyarintsev wrote: On Mon, Jul 11, 2016 at 10:50 AM, Michael Van Canneyt < mich...@freepascal.org> wrote: Long overdue, I have finally committed the initial version of the odata package in the FPC repository. Is it worth its own repository, similar to googleapi

Re: [fpc-pascal] can the compiler zero any out parameter of procedure/function automatically?

2016-07-11 Thread Jonas Maebe
Dennis wrote: > I know it is my responsibility to initialize out parameters, but I think > the compiler could help us by initializing all out parameters. The compiler will fill out-parameters with garbage if you use the -gt command line parameter, which can help you detect such problems more easil

[fpc-pascal] Why is WinCE target missing the Windows IsCharAlpha() API

2016-07-11 Thread Graeme Geldenhuys
Hi, Why is FPC WinCE target missing the Windows IsCharAlpha() API definition, including some others (I'll try and make a more complete list soon). MSDN: IsCharAlpha (Windows CE 5.0) https://msdn.microsoft.com/en-us/library/ms885690.aspx But as the requirements show, this API was included since W

[fpc-pascal] can the compiler zero any out parameter of procedure/function automatically?

2016-07-11 Thread Dennis
I just found the cause of a strange bug is because I forgot to zero the out parameter of a procedure like. procedure FindEvent (out TheEvent : TNotifyEvent); begin TheEvent := nil;//I forgot to add this line before all the processing, which sometimes did not assign to TheEvent at all

Re: [fpc-pascal] OData and Office365 REST API support

2016-07-11 Thread Dmitry Boyarintsev
On Mon, Jul 11, 2016 at 10:50 AM, Michael Van Canneyt < mich...@freepascal.org> wrote: > Long overdue, I have finally committed the initial version of the odata > package in the FPC repository. > Is it worth its own repository, similar to googleapis? thanks, Dmitry __

[fpc-pascal] OData and Office365 REST API support

2016-07-11 Thread Michael Van Canneyt
Hello, Long overdue, I have finally committed the initial version of the odata package in the FPC repository. This package provides the base for OData integration in your applications. OData is a standard adopted by the OASIS group: it describes data exchange through REST APIs. OData V4 and ODa