[fpc-devel] Object/Pointer Swap Intrinsic

2019-12-10 Thread J. Gareth Moreton
Hi everyone, I was wondering... is there an intrinsic in Free Pascal that swaps the pointers stored in two object or pointer variables? That is... something like "procedure SwapAddresses(var Obj1: TObject; var Obj2: TObject);" so after it is called, Obj2 now points to Obj1 and vice versa? 

Re: [fpc-devel] C-block reference syntax (blocker for 3.2)

2019-12-10 Thread Sven Barth via fpc-devel
Ryan Joseph via fpc-devel schrieb am Di., 10. Dez. 2019, 22:29: > > > > On Dec 10, 2019, at 11:38 AM, Sven Barth via fpc-devel < > fpc-devel@lists.freepascal.org> wrote: > > > > First of Object Pascal supports "array of const" which is safer due to a > added type field for each entry. > > > >

Re: [fpc-devel] C-block reference syntax (blocker for 3.2)

2019-12-10 Thread Ryan Joseph via fpc-devel
> On Dec 10, 2019, at 11:38 AM, Sven Barth via fpc-devel > wrote: > > First of Object Pascal supports "array of const" which is safer due to a > added type field for each entry. > From the users standpoint only real difference is the [] syntax and if the array of const is the last (or

Re: [fpc-devel] C-block reference syntax (blocker for 3.2)

2019-12-10 Thread Marco van de Voort
Op 2019-12-08 om 22:08 schreef Ryan Joseph via fpc-devel: On Dec 8, 2019, at 2:30 PM, Sven Barth via fpc-devel wrote: And no, your patch WILL NOT allow that. We've consciously decided AGAINST implementing varargs functions in Pascal (see

Re: [fpc-devel] C-block reference syntax (blocker for 3.2)

2019-12-10 Thread Sven Barth via fpc-devel
Ryan Joseph via fpc-devel schrieb am So., 8. Dez. 2019, 23:26: > > > > On Dec 8, 2019, at 2:30 PM, Sven Barth via fpc-devel < > fpc-devel@lists.freepascal.org> wrote: > > > > And no, your patch WILL NOT allow that. We've consciously decided > AGAINST implementing varargs functions in Pascal (see