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

2019-12-11 Thread Michael Van Canneyt
On Wed, 11 Dec 2019, Ryan Joseph via fpc-devel wrote: On Dec 11, 2019, at 4:16 PM, Michael Van Canneyt wrote: It does gain something: it tells you it is NOT a varargs, but an array of const, which is a different beast altogether. But it's a syntax equivalent for "a variable amount of

Re: [fpc-devel] Object/Pointer Swap Intrinsic

2019-12-11 Thread Sven Barth via fpc-devel
Am 12.12.2019 um 00:34 schrieb J. Gareth Moreton: That's true.  Given I specialise in optimisation, I've started to venture towards the node level to see where improvements can be made. One question I do have in that regard... are platform-specific nodes allowed? What I mean is, for example,

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

2019-12-11 Thread Sven Barth via fpc-devel
Am 11.12.2019 um 23:40 schrieb Ryan Joseph via fpc-devel: On Dec 11, 2019, at 4:16 PM, Michael Van Canneyt wrote: It does gain something: it tells you it is NOT a varargs, but an array of const, which is a different beast altogether. But it's a syntax equivalent for "a variable amount of

Re: [fpc-devel] Object/Pointer Swap Intrinsic

2019-12-11 Thread J. Gareth Moreton
That's true.  Given I specialise in optimisation, I've started to venture towards the node level to see where improvements can be made. One question I do have in that regard... are platform-specific nodes allowed? What I mean is, for example, a node's 'simplify' routine may transmute a set of

Re: [fpc-devel] Refactoring TVMTBuilder

2019-12-11 Thread Sven Barth via fpc-devel
Am 05.12.2019 um 13:48 schrieb bla...@blaise.ru: 1) Currently, the following snippet vmtbuilder:=TVMTBuilder.Create(...); vmtbuilder.generate_vmt; vmtbuilder.free; is present @ types_dec :objectdef generate_specialization_phase2 :objectdef jvm_maybe_create_enum_class    

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

2019-12-11 Thread Ryan Joseph via fpc-devel
> On Dec 11, 2019, at 4:16 PM, Michael Van Canneyt > wrote: > > It does gain something: it tells you it is NOT a varargs, but an array of > const, which is a different beast altogether. But it's a syntax equivalent for "a variable amount of arguments", i.e. varargs. ;) I guess others don't

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

2019-12-11 Thread Sven Barth via fpc-devel
Am 09.12.2019 um 01:03 schrieb bla...@blaise.ru: On 08.12.2019 22:30, Sven Barth wrote: there is no official way to access such parameters 1) At the time of providing that answer on Stack Overflow, Barry Kelly worked as a DCC developer. While it is not truly official, it is pretty close,

Re: [fpc-devel] Object/Pointer Swap Intrinsic

2019-12-11 Thread Sven Barth via fpc-devel
Am 11.12.2019 um 07:26 schrieb 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

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

2019-12-11 Thread Michael Van Canneyt
On Wed, 11 Dec 2019, Ryan Joseph via fpc-devel wrote: On Dec 10, 2019, at 5:14 PM, Sven Barth via fpc-devel wrote: From the view of the *caller* you are mostly right. Though the square brackets can't be left away, cause we're talking about an array parameter here. If it would be

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

2019-12-11 Thread Ryan Joseph via fpc-devel
> On Dec 10, 2019, at 5:14 PM, Sven Barth via fpc-devel > wrote: > > From the view of the *caller* you are mostly right. Though the square > brackets can't be left away, cause we're talking about an array parameter > here. If it would be allowed for array of const then it would also need to

Re: [fpc-devel] Object/Pointer Swap Intrinsic

2019-12-11 Thread J. Gareth Moreton
Of course, I briefly forgot that UsedRegs and TmpUsedRegs aren't objects, but arrays of objects - the same principle still applies though to their members. On 11/12/2019 06:26, J. Gareth Moreton wrote: Hi everyone, I was wondering... is there an intrinsic in Free Pascal that swaps the